Communication Method for Implementing Dual Card Dual Standby Dual Pass and Terminal

ABSTRACT

A terminal supporting dual receive single transmit dual card dual standby single pass DR-DSDS includes a first SIM card interface and a second SIM card interface. The first SIM card interface is configured to communicate with a first SIM card, and the second SIM card interface is configured to communicate with a second SIM card. A method includes, when the terminal is in a first communications connection, receiving a paging request for setting up a second communications connection. The method further includes, when the terminal receives the paging request for the second communications connection, if the terminal has a to-be-sent voice packet of the first communications connection, delaying, by the terminal, responding to the paging request for setting up the second communications connection, or if the terminal has no to-be-sent voice packet of the first communications connection, responding to the paging request for setting up the second communications connection.

This application claims priority to Chinese Patent Application No.201710184912.2, filed with the Chinese Patent Office on Mar. 24, 2017and entitled “COMMUNICATION METHOD FOR IMPLEMENTING DUAL CARD DUALSTANDBY DUAL PASS”, which is incorporated herein by reference in itsentirety.

TECHNICAL FIELD

Embodiments of the present invention relate to the field ofcommunications technologies, and in particular, to a communicationmethod for implementing dual card dual standby dual pass and a terminal.

BACKGROUND

With the development of communications technologies, many mobileterminals (such as mobile phones) have a dual card dual standbyfunction. Dual card dual standby means that two subscriber identitymodule (Subscriber Identity Module, SIM) cards are installed on a mobilephone, and the two SIM cards can be on a network and in a standby stateat the same time.

Dual card dual standby single pass (Dual SIM Dual Standby, DSDS) is acommon dual card dual standby solution. One set of transmit and receiveradio frequencies are configured in a DSDS mobile phone, and when themobile phone is in a standby state, the two SIM cards may performmonitoring and paging in a time division manner. However, because onlyone set of transmit and receive radio frequencies are configured in theDSDS mobile phone, the DSDS mobile phone can implement only dual carddual standby, but the two cards cannot perform communication at the sametime. For example, when one SIM card uses transmit and receive radiofrequencies to transmit voice data, because the SIM card completelyoccupies radio frequency resources, the other SIM card cannot receive apaging (paging) request due to unavailability of radio frequencyresources, causing a failure in answering a call.

To implement dual card dual standby dual pass of the mobile phone, adual card dual standby dual pass (Dual SIM Dual pass. DSDA) technologyis applied to the mobile phone. Two sets of transmit and receive radiofrequencies are configured in the DSDA mobile phone. In other words,each SIM has one independent set of transmit and receive radiofrequencies. Consequently, even if one SIM card uses one set of transmitand receive radio frequencies to transmit voice data, the other SIM cardcan use the other set of transmit and receive radio frequencies toreceive a paging paging message and answer a call. However, it isrelatively costly to configure two sets of transmit and receive radiofrequencies in the DSDA mobile phone. In addition, configuring two setsof transmit and receive radio frequencies occupies a relatively largelayout area, and increases a size of the mobile phone.

Currently, a mobile phone supporting dual receive single transmit DSDS(Dual Receive-DSDS, DR-DSDS) is proposed. In comparison with the DSDAmobile phone, only one radio frequency transmit (Transmit, Tx) channeland two radio frequency receive (Receive, Rx) channels are configured inthe DR-DSDS mobile phone. Therefore, a layout area occupied by a radiofrequency circuit can be reduced, reducing costs of the mobile phone.

Two radio frequency receive (Rx) channels are configured in the DR-DSDSmobile phone, and when one SIM card transmits voice data, the other SIMcard can receive a paging paging message. However, only one radiofrequency transmit (Tx) channel is configured in the DR-DSDS mobilephone. Therefore, when one SIM card transmits voice data and occupiesthe radio frequency transmit channel, the other SIM card cannot answer acall due to unavailability of radio frequency transmit channels forsetting up a connection to a network device. In other words, the DR-DSDSmobile phone cannot implement dual card dual standby dual pass, that is,cannot implement ringing for an incoming call of one SIM card when theother SIM card performs a voice call, which brings relatively greatinconvenience to a user.

SUMMARY

This application provides a communication method for implementing dualcard dual standby dual pass and a terminal, to implement dual card dualstandby dual pass of a terminal supporting DR-DSDS, and improve userexperience.

To achieve the foregoing objectives, this application uses the followingtechnical solutions:

According to a first aspect, this application provides a communicationmethod for implementing dual card dual standby dual pass, where themethod is applied to a terminal supporting DR-RSDS, the terminalincludes a first SIM card interface and a second SIM card interface, thefirst SIM card interface is configured to communicate with a first SIMcard, and the second SIM card interface is configured to communicatewith a second SIM card. The method includes: when the terminal is in afirst communications connection (in other words, the terminal is in acall state related to the first SIM card), receiving a paging requestfor setting up a second communications connection related to the secondSIM card (namely, the paging request for the second SIM card); and whenthe terminal receives the paging request for the second communicationsconnection, if the terminal has a to-be-sent voice packet of the firstcommunications connection, delaying, by the terminal, responding to thepaging request for setting up the second communications connection, orif the terminal has no to-be-sent voice packet of the firstcommunications connection, immediately responding, by the terminal, tothe paging request for setting up the second communications connection.

In this application, when the terminal is in the first communicationsconnection (in other words, the terminal is in the call state related tothe first SIM card), if the terminal receives the paging request for thesecond SIM card, the terminal may delay responding to the paging requestwhen the terminal has the to-be-sent voice packet of the firstcommunications connection (in other words, there is a voice packet ofthe first SIM card to be transmitted on a radio frequency Tx resource).In other words, the terminal may respond to the paging request only whenthe terminal 110 has no to-be-sent voice packet of the firstcommunications connection (in other words, there is no voice packet ofthe first SIM card to be transmitted on the radio frequency Txresource). In this way, the terminal may give an incoming callnotification of the second SIM card in response to the paging requestfor the second SIM card without affecting voice call quality of thefirst SIM card.

In conclusion, according to this solution, the terminal can implementdual card dual standby dual pass of the terminal without affecting voicecall quality of a call card, to improve user experience.

With reference to the first aspect, in a first possible implementation,the paging request for setting up the second communications connectionmay be used to request to perform a VoLTE voice service, or may be usedto request to perform a common data service (such as a network accessdata service). In this application, the terminal can determine whetherthe second communications connection is a voice call related to thesecond SIM card; and when determining that the second communicationsconnection is not the voice call related to the second SIM card,continue to process the first communications connection.

With reference to the first aspect, in a second possible implementation,the paging request for the second communications connection may be apaging request of a Long Term Evolution (Long Term Evolution, LTE)network. After receiving the paging request of the LTE network, theterminal cannot determine whether the paging request is used to requestto perform a VoLTE voice service, or is used to request to perform acommon data service (such as a network access data service). Theterminal may determine, based on an INVITE message that is sent by anetwork device and that is received after an RRC connection is set up,whether the second communications connection is the voice call relatedto the second SIM card. Specifically, the foregoing determining, by theterminal, whether the second communications connection is a voice callrelated to the second SIM card includes: sending, by the terminal to thenetwork device, radio resource control (Radio Resource Control, RRC)signaling for setting up the RRC connection, and sending SIP signalingto the network device; and determining, based on whether the terminal isable to receive the INVITE message, whether the second communicationsconnection is the voice call related to the second SIM card.

After the terminal sets up the RRC connection to the network device, ifthe paging request is used to request to perform a VoLTE voice service,the network device may send the INVITE (Invite) message (namely, theINVITE message of the second communications connection) to the terminal.

With reference to the first possible implementation, in a third possibleimplementation, the paging request may be a paging request of a circuitswitched (Circuit Switched, CS) domain service. The paging request ofthe CS domain service may directly indicate that the paging request isused to request to perform a CS domain service, and the terminal doesnot need to wait for receiving the INVITE message to determine whetherthe paging request is used to request to perform a CS domain service ora common data service. Specifically, the foregoing determining, by theterminal, whether the second communications connection is a voice callrelated to the second SIM card includes: determining, based on thepaging request for setting up the second communications connection,whether the second communications connection is the voice call relatedto the second SIM card.

With reference to any one of the first to the third possibleimplementations, when determining that the second communicationsconnection is the voice call related to the second SIM card, theterminal may give an incoming call notification of the secondcommunications connection. If the second communications connection isthe voice call related to the second SIM card, the terminal may set upthe RRC connection to the network device. After setting up the RRCconnection, the terminal exchanges the Session Initiation Protocol(Session Initiation Protocol, SIP) signaling with the network device toobtain incoming call information corresponding to the secondcommunications connection from the network device, and give an incomingcall notification of the second communications connection.

With reference to the fourth possible implementation, in a fifthpossible implementation, to ensure that the terminal can exchange theSIP signaling of the second communications connection with the networkdevice to obtain the incoming call information of the secondcommunications connection, and give an incoming call notification of thesecond communications connection, a priority for sending an uplink datapacket of the second communications connection by the terminal is higherthan a priority for sending an uplink data packet of the firstcommunications connection before the terminal gives an incoming callnotification of the second communications connection. To be specific,before the terminal gives an incoming call notification of the secondcommunications connection, the terminal transmits the uplink data packeton the radio frequency transmit resource according to a second priorityrule. The second priority rule may be set as follows: A transmitpriority of the uplink data packet of the second communicationsconnection on the radio frequency transmit resource is higher than atransmit priority of the uplink data packet of the first communicationsconnection on the radio frequency transmit resource.

With reference to the fourth possible implementation or the fifthpossible implementation, in a sixth possible implementation, topreferentially ensure voice communication quality of the first SIM card,when the terminal gives an incoming call notification of the secondcommunications connection, a priority for sending an uplink voice packetof the first communications connection by the terminal is higher than apriority for sending an uplink signaling packet of the secondcommunications connection. For example, after the terminal receives theincoming call information sent by the network device, the priority forsending the uplink voice packet of the first communications connectionby the terminal is higher than the priority for sending the uplinksignaling packet of the second communications connection. Alternatively,after the terminal sends the SIP signaling used to obtain the incomingcall information to the network device, the priority for sending theuplink voice packet of the first communications connection by theterminal is higher than the priority for sending the uplink signalingpacket of the second communications connection.

To be specific, when the terminal gives an incoming call notification ofthe second communications connection, the terminal transmits the uplinkdata packet on the radio frequency transmit resource according to afirst priority rule. The first priority rule may be set as follows: Atransmit priority of the uplink voice packet of the first communicationsconnection on the radio frequency transmit resource is higher than atransmit priority of the uplink signaling packet of the secondcommunications connection on the radio frequency transmit resource.

With reference to any one of the first to the fourth possibleimplementations, in a seventh possible implementation, it is assumedthat the first SIM card is a primary SIM card of the terminal, thesecond SIM card is a secondary SIM card of the terminal, and a networkaccess data service of the terminal is on the first SIM card. After theterminal gives an incoming call notification, the method in thisapplication may further include: when the terminal ends the firstcommunications connection and is in the second communicationsconnection, a priority for sending an uplink voice packet of the secondcommunications connection by the terminal is higher than a priority forsending an uplink network access data packet of the first communicationsconnection. To be specific, when the terminal ends the firstcommunications connection and is in the second communicationsconnection, the terminal transmits the uplink data packet on the radiofrequency transmit resource according to a third priority rule.

The third priority rule may be as follows: (1) A transmit priority of ahigh-priority packet of the call card on a radio frequency Tx channel ishigher than a transmit priority of a network access data service packetof an access card on the radio frequency Tx channel; and (2) thetransmit priority of the network access data service packet of theaccess card on the radio frequency Tx channel is higher than a transmitpriority of low-priority packets of the two cards on the radio frequencyTx channel. For details about the high-priority packet of the call cardand low-priority packets of the two cards, refer to related termdescriptions in the embodiments of this application. Details are notdescribed herein in this application.

It can be understood that, although the first SIM card of the terminalends voice communication, there is a network access data service on thefirst SIM card. To ensure that the network access data service of thefirst SIM card is normally performed without imposing relatively greatimpact on voice communication quality of the second SIM card, theterminal can transmit the uplink data packet on the radio frequencytransmit resource according to the third priority rule.

According to a second aspect, this application provides a terminal,where the terminal supports DR-RSDS, the terminal includes a first SIMcard interface and a second SIM card interface, the first SIM cardinterface is configured to communicate with a first SIM card, and thesecond SIM card interface is configured to communicate with a second SIMcard. The terminal includes: a receiving module, a sending module, and aresponding module. The receiving module is configured to: when theterminal is in a first communications connection, receive a pagingrequest for setting up a second communications connection, where thefirst communications connection is a voice call related to the first SIMcard, and the second communications connection is related to the secondSIM card. The sending module is configured to send a voice packet of thefirst communications connection when the terminal is in the firstcommunications connection. The responding module is configured to: whenthe receiving module receives the paging request for the secondcommunications connection, if the sending module has a to-be-sent voicepacket of the first communications connection, delay responding to thepaging request for setting up the second communications connection; orif the sending module has no to-be-sent voice packet of the firstcommunications connection, respond to the paging request for setting upthe second communications connection.

With reference to the second aspect, in a first possible implementation,the terminal further includes: a determining module. The determiningmodule is configured to determine whether the second communicationsconnection is a voice call related to the second SIM card. The sendingmodule is further configured to: when the determining module determinesthat the second communications connection is not the voice call relatedto the second SIM card, continue to send the voice packet of the firstcommunications connection.

With reference to the first possible implementation, in a secondpossible implementation, the sending module is further configured tosend, to a network device, RRC signaling for setting up an RRCconnection, and send SIP signaling to the network device. The receivingmodule is further configured to receive an INVITE message sent by thenetwork device. The determining module is specifically configured todetermine, based on whether the receiving module is able to receive theINVITE message, whether the second communications connection is thevoice call related to the second SIM card.

With reference to the first possible implementation, in a third possibleimplementation, the determining module is specifically configured todetermine, based on the paging request, received by the receivingmodule, for setting up the second communications connection, whether thesecond communications connection is the voice call related to the secondSIM card.

With reference to any one of the first to the third possibleimplementations, in a fourth possible implementation, the terminal mayfurther include: an incoming call notification module. The incoming callnotification module is configured to: when the determining moduledetermines that the second communications connection is the voice callrelated to the second SIM card, give an incoming call notification ofthe second communications connection.

With reference to the fourth possible implementation, in a fifthpossible implementation, before the incoming call notification modulegives an incoming call notification of the second communicationsconnection, a priority for sending an uplink data packet of the secondcommunications connection by the sending module is higher than apriority for sending an uplink data packet of the first communicationsconnection.

With reference to the fourth possible implementation, in a sixthpossible implementation, when the incoming call notification modulegives an incoming call notification of the second communicationsconnection, a priority for sending an uplink voice packet of the firstcommunications connection by the sending module is higher than apriority for sending an uplink signaling packet of the secondcommunications connection.

With reference to any one of the first to the sixth possibleimplementations, in a seventh possible implementation, after theincoming call notification module gives an incoming call notification ofthe second communications connection, when the terminal ends the firstcommunications connection and is in the second communicationsconnection, a priority for sending an uplink voice packet of the secondcommunications connection by the sending module is higher than apriority for sending an uplink network access data packet of the firstcommunications connection.

It should be noted that, for the first priority rule and the secondpriority rule in the second aspect or any possible implementation of thesecond aspect in this application, reference may be made to detaileddescriptions in the possible implementations of the first aspect.Details are not described herein again in this application.

According to a third aspect, this application provides a terminal, wherethe terminal supports DR-DSDS, and the terminal includes: one or moreprocessors, a memory, a communications interface, a first SIM cardinterface, and a second SIM card interface, The memory, thecommunications interface, the first SIM card interface, and the secondSIM card interface are coupled to the one or more processors; and thefirst SIM card interface is configured to communicate with a first SIMcard, the second SIM card interface is configured to communicate with asecond SIM card, and the communications interface includes two radiofrequency receive channels (for example, a radio frequency receivechannel 1 and a radio frequency receive channel 2) and one radiofrequency transmit channel. For example, the radio frequency receivechannel 1 is configured to receive a downlink data packet of a firstcommunications connection, and the radio frequency receive channel 2 isconfigured to receive a downlink data packet of a second communicationsconnection.

The memory is configured to store computer program code, where thecomputer program code includes an instruction, and when the one or moreprocessors execute the instruction, the terminal performs thecommunication method for implementing dual card dual standby dual passaccording to the first aspect or any possible implementation of thefirst aspect in this application.

Specifically, the communications interface is configured to: When theterminal is in the first communications connection, receive a pagingrequest for setting up the second communications connection, where thefirst communications connection is a voice call related to the first SIMcard, and the second communications connection is related to the secondSIM card; and

the one or more processors are configured to: when the radio frequencyreceive channel 1 receives the paging request for the secondcommunications connection, if the radio frequency transmit channel has ato-be-sent voice packet of the first communications connection, delayresponding to the paging request for setting up the secondcommunications connection; or if the radio frequency transmit channelhas no to-be-sent voice packet of the first communications connection,respond to the paging request for setting up the second communicationsconnection.

With reference to the third aspect, in a first possible implementation,the one or more processors are further configured to determine whetherthe second communications connection is a voice call related to thesecond SIM card; and when determining that the second communicationsconnection is not the voice call related to the second SIM card,continue to process the first communications connection.

With reference to the first possible implementation, in a secondpossible implementation, the communications interface is furtherconfigured to send, to a network device through the radio frequencytransmit channel, RRC signaling for setting up an RRC connection, andsend SIP signaling to the network device. The one or more processors arefurther configured to determine, based on whether the radio frequencyreceive channel 2 can receive an INVITE message, whether the secondcommunications connection is the voice call related to the second SIMcard.

With reference to the first possible implementation, in a third possibleimplementation, that the one or more processors are configured todetermine whether the second communications connection is a voice callrelated to the second SIM card includes:

the one or more processors are configured to determine, based on thepaging request, received on the radio frequency receive channel 2, forsetting up the second communications connection, whether the secondcommunications connection is the voice call related to the second SIMcard.

With reference to any one of the first to the third possibleimplementations, in a fourth possible implementation, the one or moreprocessors are further configured to: when determining that the secondcommunications connection is the voice call related to the second SIMcard, give an incoming call notification of the second communicationsconnection.

With reference to the fourth possible implementation, in a fifthpossible implementation, before the one or more processors give anincoming call notification of the second communications connection, apriority for sending an uplink data packet of the second communicationsconnection on the radio frequency transmit channel is higher than apriority for sending an uplink data packet of the first communicationsconnection.

With reference to the fourth possible implementation or the fifthpossible implementation, in a sixth possible implementation, when theone or more processors give an incoming call notification of the secondcommunications connection, a priority for sending an uplink voice packetof the first communications connection on the radio frequency transmitchannel is higher than a priority for sending an uplink signaling packetof the second communications connection.

With reference to any one of the first to the fourth possibleimplementations, in a seventh possible implementation, after the one ormore processors give an incoming call notification of the secondcommunications connection, when the one or more processors end the firstcommunications connection and are in the second communicationsconnection, a priority for sending an uplink voice packet of the secondcommunications connection on the radio frequency transmit channel ishigher than a priority for sending an uplink network access data packetof the first communications connection.

According to a fourth aspect, this application provides a computerstorage medium, where the computer storage medium includes a computerinstruction, and when the computer instruction runs on a terminalsupporting DR-RSDS, the terminal performs the communication method forimplementing dual card dual standby dual pass according to the firstaspect or any possible implementation of the first aspect.

According to a fifth aspect, this application provides a computerprogram product, where when the computer program product runs on acomputer, the computer performs the communication method forimplementing dual card dual standby dual pass according to the firstaspect or any possible implementation of the first aspect.

It can be understood that, the terminal in the second aspect, anypossible implementation of the second aspect, and the third aspect, thecomputer storage medium in the fourth aspect, and the computer programproduct in the fifth aspect in this application are all configured toperform the corresponding method provided above. Therefore, forbeneficial effects that can be achieved thereby, refer to the beneficialeffects in the corresponding method provided above. Details are notdescribed herein again.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic structural diagram of a terminal supportingDR-RSDS according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of an example of an application scenarioof a communication method for implementing dual card dual standby dualpass according to an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of a terminal supportingDR-DSDS in an LTE network according to an embodiment of the presentinvention;

FIG. 4 is a schematic diagram of a hardware structure of a mobile phoneaccording to an embodiment of the present invention;

FIG. 5 is a flowchart 1 of a communication method for implementing dualcard dual standby dual pass according to an embodiment of the presentinvention;

FIG. 6 is a schematic diagram 1 of an example of a log according to anembodiment of the present invention;

FIG. 7A is a schematic diagram 2 of an example of a log according to anembodiment of the present invention;

FIG. 7B is a schematic diagram 3 of an example of a log according to anembodiment of the present invention;

FIG. 8A is a schematic diagram 4 of an example of a log according to anembodiment of the present invention;

FIG. 8B is a schematic diagram 5 of an example of a log according to anembodiment of the present invention;

FIG. 9A and FIG. 9B are a schematic diagram 1 of a GUI, according to anembodiment of the present invention, displayed when a terminal performsa method in an embodiment of the present invention;

FIG. 10 is a flowchart 2 of a communication method for implementing dualcard dual standby dual pass according to an embodiment of the presentinvention;

FIG. 11A, FIG. 11B, and FIG. 11C are a schematic diagram 2 of a GUI,according to an embodiment of the present invention, displayed when aterminal performs a method in an embodiment of the present invention;

FIG. 12A, FIG. 12B, and FIG. 12C are a schematic diagram 3 of a GUI,according to an embodiment of the present invention, displayed when aterminal performs a method in an embodiment of the present invention;

FIG. 13A, FIG. 13B, and FIG. 13C are a schematic diagram 4 of a GUI,according to an embodiment of the present invention, displayed when aterminal performs a method in an embodiment of the present invention;

FIG. 14A, FIG. 1413, FIG. 14C, and FIG. 14D are a schematic diagram 5 ofa GUI, according to an embodiment of the present invention, displayedwhen a terminal performs a method in an embodiment of the presentinvention;

FIG ISA and FIG. 15B are a flowchart 3 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 16A and FIG. 16B are a flowchart 4 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 17A and FIG. 17B are a flowchart 5 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 18A and FIG. 18B are a flowchart 6 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 19A and FIG. 19B are a flowchart 7 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 20A, FIG. 20B and FIG. 20C are a flowchart 8 of a communicationmethod for implementing dual card dual standby dual pass according to anembodiment of the present invention;

FIG. 21A, FIG. 21B, and FIG. 21C are a flowchart 9 of a communicationmethod for implementing dual card dual standby dual pass according to anembodiment of the present invention;

FIG. 22A and FIG. 22B are a flowchart 10 of a communication method forimplementing dual card dual standby dual pass according to an embodimentof the present invention;

FIG. 23 is a schematic structural diagram 1 of a terminal according toan embodiment of the present invention;

FIG. 24 is a schematic structural diagram 2 of a terminal according toan embodiment of the present invention;

FIG. 25 is a schematic structural diagram 3 of a terminal according toan embodiment of the present invention; and

FIG. 26 is a schematic structural diagram 4 of a terminal according toan embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The embodiments of the present invention provide a communication methodfor implementing dual card dual standby dual pass, and the method can beapplied to a terminal supporting DR-DSDS. Two SIM cards (a first SIMcard and a second SIM card) may be installed on the terminal, and oneradio frequency transmit (Tx) channel and two radio frequency receive(Rx) channels are configured in the terminal. The first SIM card and thesecond SIM card in the terminal each may occupy one of the two radiofrequency Rx channels for use, and use the radio frequency Tx channel ofthe terminal in a time division manner.

FIG. 1 is a schematic structural diagram of a terminal supportingDR-DSDS according to an embodiment of the present invention. As shown inFIG. 1, a terminal 100 may include: a first SIM card interface 110, asecond. SIM card interface 120, a manager 140 coupled to the first SIMcard interface 110 and the second SIM card interface 120, a processor130 coupled to the manager 140, and a transceiver 150 connected to theprocessor 130. The processor 130 may be a baseband processor (Base BandProcessor, BBP). As shown in FIG. 1, the transceiver 150 includes aradio frequency Rx 1 channel, a radio frequency Rx 2 channel, and aradio frequency Tx channel.

The first SIM card interface 110 is configured to install a SIM card 1,and communicate with the SIM card 1, and the second SIM card interface120 is configured to install a SIM card 2, and communicate with the SIMcard 2. The manager 140 may send an uplink data packet related to aservice of the SIM card 1 and an uplink data packet related to a serviceof the SIM card 2 to the processor 130. The processor 130 may send anuplink data packet on the radio frequency Tx channel to a network devicebased on transmit priorities of uplink data packets of the SIM card 1and the SIM card 2 on the radio frequency Tx channel.

It should be noted that, the radio frequency Tx channel in thisembodiment of the present invention may be referred to as a Tx radiofrequency resource or a transmitter (Transmitter), and the radiofrequency Rx channel may be referred to as an Rx radio frequencyresource or a receiver (Receiver)

In this embodiment of the present invention, the radio frequency Txchannel and the radio frequency Rx 1 channel may be referred to as RFprimary channels, and the radio frequency Rx 2 channel may be referredto as an RF secondary channel. To be specific, uplink and downlink RFcomponents (for example, the radio frequency Tx channel and the radiofrequency Rx 1 channel) of the RF primary channels are multiplexed, andthe RF secondary channel has only a downlink RF component (for example,the RF Rx 2 channel).

Specifically, the communication method for implementing dual card dualstandby dual pass provided in this embodiment of the present inventioncan be applied to the following: When one SIM card (for example, a firstSIM card, or the SIM card 1) of the terminal supporting DR-DSDS occupiesthe Tx radio frequency resource for a voice call (in other words, theterminal is in a first communications connection), if the other SIM card(for example, a second SIM card, or the SIM card 2) has a voice paging(paging) request for access (in other words, the terminal receives apaging request for setting up a second communications connection), theterminal rings (ring) in response to the voice paging request, andprovides a voice call service of the second SIM card for a riser. Thefirst communications connection is a voice call related to the first SIMcard, and the second communications connection is related to the secondSIM card.

FIG. 2 is a schematic diagram of an example of an application scenarioof a communication method for implementing dual card dual standby dualpass according to an embodiment of the present invention. A terminal 110of a user A shown in FIG. 2 may be the terminal supporting DR-DSDS, andtwo SIM cards may be installed on the terminal 110: a SIM card 1 and aSIM card 2. The SIM card 1 of the terminal 110 may be a primary card ofthe terminal 110, and the SIM card 2 may be a secondary SIM card of theterminal 110. Alternatively, the SIM card 2 of the terminal 110 may be aprimary card of the terminal 110, and the SIM card 1 may be a secondarySIM card of the terminal 110.

After a user B uses a terminal 120 to initiate a voice paging request tothe SIM card 1 of the terminal 110, the user A may use the terminal 110to perform, by using the SIM card 1 of the terminal 110, a voice callwith the user B holding the terminal 120. As shown in FIG. 2, in aprocess in which the user A uses the terminal 110 to perform, by usingthe SIM card 1 of the terminal 110, a voice call with the user B holdingthe terminal 120, a user C may use a terminal 130 to initiate a voicepaging request to the SIM card 2 of the terminal 110, to request toperform, by using the SIM card 2 of the terminal 110, a voice call withthe user A holding the terminal 110.

The communication method for implementing dual card dual standby dualpass provided in the embodiments of the present invention may be appliedto the foregoing application scenario. An incoming call request of theterminal 130 is connected to the terminal 110, that is, the terminal 110gives an incoming call notification of the SIM card 2, without imposingrelatively great impact on voice call quality of the user A and the userB, so that the user can select “decline an incoming call of the SIM card2, and continue with a voice call of the SIM card 1”, or select “hang upa voice call of the SIM card 1, and accept a voice call of the SIM card2”, or select “hold a voice call of the SIM card 1, and accept a voicecall of the SIM card 2”.

For example, the incoming call notification in the embodiments of thepresent invention may include one or more of the following notificationmanners: The terminal rings, a user interface of the terminal displaysan incoming call from the user C, the terminal vibrates, a camera flashof the terminal flashes, and so on.

For example, each of the two SIM cards of the terminal supportingDR-RSDS provided in the embodiments of the present invention may be aSIM card supporting any one of standards such as a Global System forMobile communications (Global System for Mobile Communication, GSM)standard, a Universal Mobile Telecommunications System (Universal MobileTelecommunications System, UMTS) standard, a Time Division-SynchronousCode Division Multiple Access (Time Division-Synchronous Code DivisionMultiple Access, TD-SCDMA) standard, a Long Term Evolution (Long TermEvolution, LTE) standard, and a Code Division Multiple Access (CodeDivision Multiple Access, CDMA) standard.

For example, both the SIM card 1 and the SIM card 2 of the terminal 110shown in FIG. 1 or FIG. 2 may be SIM cards supporting the LTE standard.Voice communication performed by the terminal 110 by using the SIM card1 with the terminal 120 may be a (Voice over LTE, VoLTE) service. Voicecommunication performed by the terminal by using the SIM card 2 with theterminal 130 may be a (Voice over LTE, VoLTE) service.

Alternatively, the SIM card 1 of the terminal 110 shown in FIG. 1 orFIG. 2 may be a SIM card supporting the LTE standard, and voicecommunication performed by the terminal 110 by using the SIM card 1 withthe terminal 120 may be a VoLTE service. The SIM card 2 of the terminal110 shown in FIG. 1 or FIG. 2 may be a SIM card supporting the GSMstandard, and voice communication performed by the terminal 110 by usingthe SIM card 2 with the terminal 130 may be a circuit switched (CircuitSwitched, CS) domain service.

Alternatively, both the SIM card 1 and the SIM card 2 of the terminal110 shown in FIG. 1 or FIG. 2 may be SIM cards supporting the GSMstandard, and both voice communication performed by the terminal 110 byusing the SIM card 1 with the terminal 120 and voice communicationperformed by the terminal 110 by using the SIM card 2 with the terminal130 may be CS domain services.

A data service of the terminal 110 may be on the SIM card 1, or may beon the SIM card 2; or data service transmission of the terminal 110 maybe performed on both the SIM card 1 and the SIM card 2 of the terminal110.

FIG. 3 is a schematic structural diagram of a terminal supportingDR-DSDS in an

LTE network according to an embodiment of the present invention. Asshown in FIG. 3, the terminal 300 may include: a first SIM cardinterface 310, a second SIM card interface 320, a manager 340 coupled tothe first SIM card interface 310 and the second SIM card interface 320,a BBP 330 (namely, a processor) coupled to the manager 340, and atransceiver 350 connected to the processor 330.

As shown in FIG. 3, the transceiver 350 includes a radio frequency Rx 1channel, a radio frequency Rx 2 channel, and a radio frequency Txchannel. The first SIM card interface 310 is configured to install a SIMcard 1, and communicate with the SIM card 1, and the second SIM cardinterface 320 is configured to install a SIM card 2, and communicatewith the SIM card 2.

The BBP 330 includes a common time unit (Common Time Unit, CTU). The CTUincludes an arbiter configured to determine a transmit priority of anuplink data packet.

In an example, in the LTE network, the terminal 300 may send an uplinkdata packet to a network device by using the hybrid automatic repeatrequest (Hybrid Automatic Repeat request, HARQ) protocol. In this way,even if an uplink data packet, sent by the manager 340 to the BBP 330,of the SIM card (for example, the SIM card 2) is not transmitted intime, the uplink data packet can be retransmitted according to the HARQprotocol.

As shown in FIG. 3, the manager 340 may send an uplink data packet(prio) in a Radio Link Control (Radio Link Control, RLC) queue of theSIM card 1 and the SIM card 2 by using the HARQ protocol. The BBP 330may receive various data packets sent by the manager 340, such as anuplink voice packet sent by the SIM card 1, and an uplink signalingpacket sent by the SIM card 2. The BBP 330 occupies, based on transmitpriorities of uplink data packets on the radio frequency Tx channel, theradio frequency Tx channel to send an uplink data packet to the networkdevice.

For example, the terminal supporting DR-RSDS in this embodiment of thepresent invention may be a communications device on which at least twoSIM cards can be installed, and any one of the at least two SIM cardscan be used to perform voice communication with another communicationsterminal. For example, the terminal may be a dual card dual standbymobile phone, or may be a smart band, a smartwatch, or a tablet computeron which two SIM cards can be installed, or the like. No speciallimitation is imposed on a specific form of the terminal in thisembodiment of the present invention.

In the following embodiment, a mobile phone is used as an example toillustrate how a terminal supporting DR-RSDS implements the specifictechnical solutions in the embodiments. As shown in FIG. 4, the terminalin this embodiment may be a mobile phone 400. The following uses themobile phone 400 as an example to describe this embodiment in detail.

It should be understood that the mobile phone 400 shown in the figure ismerely an example of the terminal supporting DR-RSDS, and the mobilephone 400 may have more or fewer components than those shown in thefigure, or have a combination of two or more components, or have adifferent component configuration. The various components shown in FIG.4 may be implemented in hardware including one or more signal processingcircuits and/or application-specific integrated circuits, software, ora. combination thereof.

As shown in FIG. 4, the mobile 400 includes: a processor 410, aSystem-On-a-Chip device 420, a display controller 430, a codec (CODEC)440, a manager 450, a memory 460, an input device 470, a modem 480, atransceiver 490, a power supply 491, and the like.

A person skilled in the art may understand that the mobile phonestructure shown in FIG. 4 does not constitute a limitation on the mobilephone, and the mobile phone structure may include more or fewercomponents than those shown in the figure, or have a combination of somecomponents, or have a different component arrangement.

As shown in FIG. 4, the mobile phone 400 may further include a first SIMcard interface 451 and a second SIM card interface 452. The first SIMcard interface 451 is configured to communicate with a SIM card 1 453,and the second SIM card interface 452 is configured to communicate witha SIM card 2 454. For example, the first SIM card interface 451 and thesecond SIM card interface 452 may be SIM card connectors. The SIM cardconnector includes a body having space for accommodating a SIM card, anda plurality of connection slots configured to receive conductingterminals of the received SIM card. Electrical signaling communicationwith a SIM card may be performed by using the conducting terminal andthe slot. An example interface may include serial or parallel (forexample, six pins or eight pins) connections. In addition, a pluralityof SIM card sizes (for example, a standard SIM, a micro-SIM, or anano-SIM) may be provided. In another embodiment, when a plurality ofsubscriptions are associated with a universal identity module (forexample, a universal SIM), the mobile phone 400 may not include aplurality of SIM card interfaces. The manager 450 is configured tomanage the SIM card 1 453 and the SIM card 2 454.

As shown in FIG. 4, the mobile phone 400 may further include a speaker441 and a microphone 442 that are coupled to the codec codec 440. FIG. 4further indicates that a controller 740 may be coupled to the processor410, and coupled to the modem 480 that communicates with the transceiver490. The transceiver 490 is connected to one or more antennas. FIG. 4merely shows an example of one antenna.

In a specific embodiment, the transceiver 490 is connected to aplurality of antennas, the modem 480 supports diversity, and one of theplurality of antennas is a primary antenna and another antenna is asecondary antenna.

The transceiver 490 may be an RF circuit, and the RF circuit may beconfigured to receive or send a signal in an informationreceiving/sending process or a call process. The RF circuit may receivedownlink information of a base station and then send the downlinkinformation to the processor 410 for processing; and send related uplinkdata to the base station. Generally, the RF circuit includes but is notlimited to devices such as the antenna, at least one amplifier, atransceiver, a coupler, a low noise amplifier, and a duplexer. Inaddition, the RF circuit may further communicate with a network andanother mobile device through wireless communication. Any communicationsstandard or protocol may be used for the wireless communication, andincludes but is not limited to a Global System for Mobilecommunications, a general packet radio service, Code Division MultipleAccess, Wideband Code Division Multiple Access, Long Term Evolution, anemail, a short message service, and the like. In this embodiment of thepresent invention, the transceiver 490 shown in FIG. 4 may include tworadio frequency Rx channels and one radio frequency Tx channel (theradio frequency Tx channel, a radio frequency Rx 1 channel, and a radiofrequency Rx 2 channel that are shown in FIG. 4).

The memory 460 can be configured to store a software program and data.The processor 410 performs various functions and data processing of themobile phone 400 by running the software program and the data that arestored in the memory 460. For example, as shown in FIG. 4, the memory460 stores an instruction 461 and transmit priority information 462, andthe instruction 461 may be executed by the processor 410. For example,the instruction 461 may include an instruction that can be executed bythe processor 410 to receive, at a primary signal input end of the modem480, communication data related to the SIM card 1 453. The“communication data related to the SIM card 1 453” may be routed to theprimary signal input end (which is not shown in FIG. 4) of the modem 480through a primary RF path of the transceiver 490, namely, Rx 1. Theinstruction 461 includes an instruction that can be executed by theprocessor 410 to receive, at a secondary signal input end of the modem480, communication data related to the SIM card 2 454. The“communication data related to the SIM card 2 454” may be routed to thesecondary signal input end (which is not shown in FIG. 4) of the modem480 through a secondary RF path of the transceiver 490, namely, Rx 2.

The memory 460 may mainly include a program storage area and a datastorage area. The program storage area may store an operating system, anapplication required by at least one function (such as a sound playfunction or an image play function), and the like. The data storage areamay store data (such as audio data or a phone book) that is createdbased on use of the mobile phone 400, and the like. In addition, thememory 460 may include a high-speed random access memory, and mayfurther include a nonvolatile memory, for example, at least one magneticdisk storage device, a flash memory, or another volatile solid-statestorage device. In the following embodiments, the memory 460 stores anoperating system enabling the mobile phone 400 to run, for example, theiOS® operating system developed by the Apple Inc., the Android®open-source operating system developed by the Google LLC, or theWindows® operating system developed by the Microsoft Corporation.

The input device 470 (for example, a touchscreen) may be configured toreceive entered numerical or character information, and generate signalinputs related to user settings and function control of the mobile phone400. Specifically, the input device 470 may include a touch paneldisposed on the front of the mobile phone 400, and the touch panel maycollect a touch operation (for example, an operation performed on ornear the touch panel by a user by using any proper object or accessorysuch as a finger or a stylus) on or near the touch panel, and drive acorresponding connection apparatus based on a preset program.Optionally, the touch panel may include two parts: a touch detectionapparatus and a touch controller. The touch detection apparatus detectsa touch direction and position of the user, detects a signal arisingfrom the touch operation, and transmits the signal to the touchcontroller. The touch controller receives touch information from thetouch detection apparatus, converts the touch information into touchcoordinates, and sends the touch coordinates to the processor 410. Inaddition, the touch controller can receive and execute an instructionsent by the processor 410. In addition, the touch panel may beimplemented in a plurality of types such as a resistor type, a capacitortype, an infrared type, and a surface acoustic wave type.

A display 431 (namely, a display screen) can be configured to displayinformation entered by the user or information provided to the user, anda graphical user interface (Graphical User Interface, GUI) of variousmenus of the mobile phone 400. The display 431 may include a displaypanel disposed on the front of the mobile phone 400. The display panelmay be configured in a form of a liquid crystal display, a lightemitting diode, or the like.

After detecting a touch operation on or near the touch panel, the touchpanel transmits information about the touch operation to the processor410 to determine a touch event. Subsequently, the processor 410 providesa corresponding visual output on the display panel based on a type ofthe touch event. In FIG. 4, the touch panel and the display panel aretwo independent components to implement input and output functions ofthe mobile phone 400. However, in some embodiments, the touch panel andthe display panel may be integrated to implement the input and outputfunctions of the mobile phone 400. An integrated touch panel and displaypanel can be briefly referred to as a touch display.

In some other embodiments, a pressure sensor may be further disposed onthe touch panel, so that when the user performs a touch operation on thetouch panel, the touch panel can further detect pressure of the touchoperation, and the mobile phone 400 can detect the touch operation moreaccurately.

The mobile phone 400 may further include at least one sensor 443, suchas a light sensor, a motion sensor, or another sensor. Specifically, thelight sensor may include an ambient light sensor and a proximity sensor.The ambient light sensor may adjust luminance of the display panel basedon intensity of ambient light. The proximity sensor is disposed on thefront of the mobile phone 400. When the mobile phone 400 approaches anear, the mobile phone 400 turns off a power supply of the display panelbased on detection of the proximity sensor, so that the mobile phone 400can further reduce battery power consumption. As a type of motionsensor, an accelerometer sensor can detect values of acceleration indirections (usually three axes), and can detect a value and a directionof gravity when the mobile phone 400 is still. The acceleration sensormay be used for an application for identifying a mobile phone posture(for example, screen switching between a landscape mode and a portraitmode, a related game, and magnetometer posture calibration), a functionrelated to vibration identification (such as a pedometer, and a stroke),and the like. Other sensors such as a gyroscope, a barometer, ahygrometer, a thermometer, or an infrared sensor may be further disposedon the mobile phone 400. Details are not described herein.

The codec 440, the speaker 441, and the microphone 442 can provide anaudio interface between the user and the mobile phone 400. The codec 440may transmit, to the speaker 441, an electrical signal that is convertedfrom received audio data, and the speaker 441 converses the electricalsignal into a sound signal and outputs the sound signal. In addition,the microphone 442 converts a collected sound signal into an electricalsignal, and the codec 440 receives the electrical signal and convertsthe electrical signal into audio data, and then outputs the audio datato the RF circuit 410, to send the audio data to, for example, anothermobile phone, or output the audio data to the memory 460 for furtherprocessing.

The processor 410 is a control center of the mobile phone 400, connectsvarious parts of the entire mobile terminal through various interfacesand lines, and performs various functions and data processing of themobile phone 400 by running or executing the software program stored inthe memory 460 and invoking the data stored in the memory 460, toperform overall monitoring on the mobile phone. In some embodiments, theprocessor 410 may include one or more processing units. The processor410 may be further integrated with an application processor and a modemprocessor. The application processor mainly processes an operatingsystem, a user interface, an application, and the like. The modemprocessor mainly processes wireless communication. It can be understoodthat, alternatively, the modem processor may not be integrated into theprocessor 410.

The mobile phone 400 may further include a Bluetooth module and a Wi-Fimodule. The Bluetooth module is configured to exchange information withanother device by using a short-range communications protocol such asBluetooth. For example, the mobile phone 400 may set up a Bluetoothconnection, by using the Bluetooth module, to another wearableelectrical device (for example, a smartwatch) also having a Bluetoothmodule, to exchange information. Wi-Fi belongs to a short-range wirelesscommunications technology, and the mobile phone 400 can use the Wi-Fimodule to help the user receive and send an email, browse a web page,access streaming media, and so on. The Wi-Fi module provides the userwith wireless broadband Internet access.

The mobile phone 400 further includes the power supply 491 (such as abattery) that supplies power to the parts. The power supply may belogically connected to the processor 410 through a power supplymanagement system, to implement, through the power management system,functions such as charging management, discharging management and powerconsumption management. It can be understood that, in the followingembodiments, the power supply 491 may be configured to supply power tothe display panel and the touch panel. The methods in the followingembodiments all can be implemented in the mobile phone 400 having theforegoing hardware structure.

The technical terms in the embodiments of the present invention areexplained and described herein in this embodiment of the presentinvention:

When the SIM card 1 (referred to as “a call card” below) of the terminalperforms voice communication, and the SIM card 2 (referred to as “anaccess card” below) is in a standby state, a data packet transmitted onthe radio frequency Tx channel of the terminal may include: a signalingpacket of the call card, a voice packet of the call card, a schedulingrequest (Scheduling Request, SR) packet of the call card, anacknowledgement (Acknowledgement, ACK) packet of the call card, a nullpacket of the call card, a channel quality indicator (Channel QualityIndicator, CQI) packet of the call card, a sounding reference signal(Reference Symbol SRS, SRS) packet of the call card, a service datapacket of the call card, or the like.

For example, the signaling packet of the call card may be a data packetthat needs to be sent to a network device in a voice communicationprocess of the call card and that is used to support the voicecommunication and carries protocol signaling. The voice packet of thecall card is a data packet that carries voice data, and is sent by theterminal to the network device when the call card is in a call state.The ACK packet of the call card is a data packet that carries anacknowledgement message, and is replied to the network device after theterminal receives signaling sent by the network device. The service datapacket of the call card is a network access data service packet of thecall card. For example, the service data packet of the call card may bea video streaming media data packet downloaded by using data traffic ofthe call card when the user uses the terminal to watch a video.

When the SIM card 1 (referred to as “the call card” below) of theterminal is in the call state, and the terminal receives a voice paging(paging) request for the SIM card 2 (referred to as “the access card”below), and responds to the voice paging request, the data packettransmitted on the radio frequency Tx channel of the terminal mayinclude: a signaling packet of the access card, a null packet of theaccess card, a CQI packet of the access card, an SRS packet of theaccess card, and the like.

For example, the signaling packet of the access card may include: a datapacket that carries protocol signaling and is sent by the terminal tothe network device in response to the paging request for the accesscard; or RRC signaling sent to the network device when the access cardsets up an RRC connection to the network device. Alternatively, thesignaling packet of the access card may be SIP signaling sent to thenetwork device after the access card sets up an RRC connection to thenetwork device.

In some embodiments of the present invention, the null packet, the CQIpacket, and the SRS packet of the call card are collectively referred toas low-priority packets of the call card, and the null packet, the CQIpacket, and the SRS packet of the access card may be collectivelyreferred to as low-priority packets of the access card; and thelow-priority packets of the call card and the low-priority packets ofthe access card are collectively referred to as low-priority packets ofthe two cards. The null packet of the call card or the access card maybe a data packet that carries no service data, for example, a heartbeatpacket.

In some embodiments of the present invention, the signaling packet, thevoice packet, the ACK packet, the network access data service packet,and the SR packet of the call card are collectively referred to ashigh-priority packets of the call card, and the signaling packet, an ACKpacket, a network access data service packet, and an SR packet of theaccess card are collectively referred to as high-priority packets of theaccess card; and the high-priority packets of the call card and thehigh-priority packets of the access card are collectively referred to ashigh-priority packets of the two cards.

It should be noted that, the call card in this embodiment of the presentinvention is a SIM card in a voice call process, the access card is aSIM card that receives a paging request when the call card is in thevoice call process.

In this embodiment of the present invention, when the SIM card 1(namely, “the call card”) of the terminal performs voice communication,the terminal is in a first communications connection, and the firstcommunications connection is a voice call related to the SIM card 1. Thepaging request for the SIM card 2 is a paging request for setting up asecond communications connection, and the second communicationsconnection is related to the SIM card 2. The paging request for the SIMcard 2 may be a voice paging request, or may be a paging request ofanother service. For example, the paging request for the SIM card 2 maybe a paging request of a short message service.

For example, the application scenario shown in FIG. 2 is used as anexample herein in this application, to describe, in detail, acommunication method for implementing dual card dual standby dual passprovided in an embodiment of the present invention. As shown in FIG. 5,the communication method for implementing dual card dual standby dualpass provided in this embodiment of the present invention is as follows.

S501. A terminal 110 performs voice communication with a terminal 120 byusing a SIM card 1.

It can be understood that, in a process in which the terminal 110performs voice communication with the terminal 120 by using the SIM card1 (in other words, the terminal 110 is in a first communicationsconnection), the SIM card 1 of the terminal 110 is in a call state, andthe terminal 110 sends a voice packet of the first communicationsconnection to a network device. Therefore, the SIM card 1 of theterminal 110 occupies a Tx radio frequency resource (namely, a radiofrequency Tx channel) of the terminal 110 by using a processor.

S502. A terminal 130 initiates a call request to a SIM card 2 of theterminal 110.

As shown in FIG. 2, the terminal 130 may send, to a base station 131providing a cell in which the terminal 130 is located, the call requestfor calling the SIM card 2 of the terminal 110. After receiving the callrequest, the base station 131 may request a core network device to pagea called terminal (namely, the SIM card 2 of the terminal 110). The corenetwork device instructs a base station 112 to send a paging (paging)request, to page the SIM card 2 of the terminal 110. The core networkdevice may be a mobility management entity (Mobility Management Entity,MME).

S503. The terminal 110 receives a paging (paging) request, triggered bythe call request, for the SIM card 2.

The call request for the SIM card 2 is specifically a paging request forsetting up a second communications connection, and the secondcommunications connection is related to the SIM card 2.

Voice communication performed by the terminal 110 with the terminal 120by using the SIM card 1 occupies a radio frequency Rx 1 channel of theterminal 110. The terminal 110 may receive the paging request for theSIM card 2 through a radio frequency Rx 2 channel.

Generally, after receiving the paging request, the terminal may send RRCsignaling to the network device in response to the paging request, toset up an RRC connection to the network device, and perform a servicecorresponding to the paging request. However, in a scenario in which“when the SIM card 1 of the terminal 110 is in the call state, theterminal 110 receives the paging request for the SIM card 2”, if theterminal 110 occupies the radio frequency Tx channel to send the RRCsignaling to the network device in response to the paging request,sending of a to-be-sent voice packet of the SIM card 1 of the terminal110 is delayed because the RRC signaling occupies the radio frequency Txchannel, affecting voice communication quality of a call card (the SIMcard 1).

However, in a process in which the terminal 110 performs a voice serviceof the SIM card 1, the terminal does not always occupy the radiofrequency Tx channel to send the voice packet of the SIM card 1. Inother words, when the SIM card 1 is in the call state, the terminal 110does not transmit the voice packet of the SIM card 1 on the radiofrequency Tx channel in some idle time periods. For example, there is atime (briefly referred to as an idle time period) in each subframe, andin the idle time period, the terminal 110 does not transmit the voicepacket of the SIM card 1 on the radio frequency Tx channel.

For example, a time division duplex (time division duplex Time DivisionDuplexing, TDD) LIE network is used as an example herein in thisembodiment of the present invention. Table 1 shows an example of anuplink-downlink slot configuration table in the TDD-LTE network.

TABLE 1 Uplink-downlink slot configuration table in a TDD-LTE networkSwitch- UL-DL point Subframe number configuration periodicity 0 1 2 3 45 6 7 8 9 UL-DL (0)  5 ms D S U U U D S U U U UL-DL (1)  5 ms D S U U DD S U U D UL-DL (2)  5 ms D S U D D D S U D D UL-DL (3) 10 ms D S U U UD D D D D UL-DL (4) 10 ms D S U U D D D D D D UL-DL (5) 10 ms D S U D DD D D D D UL-DL (6)  5 ms D S U U U D S U U D

As shown in Table 1, the TDD-LTE network may include sevenuplink-downlink slot configurations (Uplink-Downlink Configuration,UL-DL Configuration). In the seven UL-DL configurations shown in Table1, an uplink-to-downlink subframe switch-point periodicity (Switch-pointperiodicity) of UL-DL (0). UL-DL (1), UL-DL (2), and UL-DL (6) is 5 ms,and an uplink-to-downlink subframe switch-point periodicity in UL-DL(3), UL-DL (4) and UL-DL (5) is 10 ms. “U” in Table 1 is used toindicate a slot for transmitting uplink data (such as an uplink voicepacket), and “D” is used to indicate a slot for transmitting downlinkdata.

It can be learned from the seven uplink-downlink slot configurationsshown in Table 1, that the uplink data. (such as an uplink voice packet)is transmitted only in some slots (namely, uplink slots “U”) in onesubframe, and the uplink data (such as an uplink voice packet) is nottransmitted in other slots. For example, in UL-DL (2), only slot 2 andslot 7 are used to transmit the uplink data (such as an uplink voicepacket), and other slots are not used to transmit the uplink data.

It can be learned that there is a time (briefly referred to as an idletime period) in each subframe, and in the idle time period, the SIM card1 does not transmit the uplink voice packet on the radio frequency Txchannel. Therefore, in the idle time period, even if the SIM card 2 ofthe terminal 110 uses the radio frequency Tx channel of the terminal 110to interact with the network device in response to the paging request,and sets up a radio resource control (Radio Resource Control, RRC)connection, quality of voice communication between the SIM card 1 of theterminal 110 and the terminal 120 is not affected.

Therefore, to avoid impact on voice communication quality of the callcard (the SIM card 1) caused by responding to the paging request by theterminal 110, in this embodiment of the present invention, the terminal110 may respond to the paging request when not sending the voice packetof the SIM card 1.

S504. When the terminal 110 receives the paging (paging) request for theSIM card 2, if the terminal 110 has a to-be-sent voice packet of the SIMcard 1, the terminal 110 delays responding to the paging request for theSIM card 2.

That the terminal 110 has a to-be-sent voice packet of the SIM card 1 isspecifically: the terminal 110 is in the first communicationsconnection, and the terminal 110 has a voice packet of the firstcommunications connection.

For example, a log log of the terminal 110 may record information aboutdata packets sent and received by the SIM card 1 and the SIM card 2. Forexample, the log log records a type, a SIM card name, a byte count, andthe like of all uplink data packets related to the SIM card 1.

FIG. 6 shows an example of information, recorded in a log log, about adata. packet sent by a SIM card according to an embodiment of thepresent invention. As shown in FIG. 6, it is assumed that the SIM card 1is in the call state (in other words, the terminal is in the firstcommunications connection), and voice packets of the firstcommunications connection may include a voice packet Y0, a voice packetY1, a voice packet Y2, a voice packet Y3, and a voice packet Y4. Thevoice packet Y0, the voice packet Y1, the voice packet Y2, the voicepacket Y3, and the voice packet Y4 are estimated to be sequentially sentat a T0 moment, a T1 moment, a T2 moment, a T3 moment, and a T4 moment.

In some embodiments, with reference to Table 1, it is assumed that theterminal uses the UL-DL (2) slot configuration shown in Table 1 toperform voice communication of the SIM card 1 and the SIM card 2. Asshown in FIG. 7A, in a downlink slot “9-D” (namely, a T7 moment) of aperiod 2, the terminal receives the paging request for the SIM card 2(namely, the paging request for setting up the second communicationsconnection) on the radio frequency Rx 2 channel.

It should be noted that when the SIM card 1 is in the call state, if theterminal 110 receives the paging request for the SIM card 2, as shown inFIG. 7A, the terminal 110 may send a signaling packet X0 and a signalingpacket X1 (such as RRC signaling packets) in response to the pagingrequest.

Generally, regardless of whether a voice packet of the SIM card 1 issent on the radio frequency Tx channel, after receiving the pagingrequest, the terminal 110 may send the signaling packet X0 and thesignaling packet X1 on the radio frequency Tx channel in immediateresponse to the paging request. For example, as shown in “Tx (1)” inFIG. 7A, after receiving the paging request for the SIM card 2 at the T7moment, the terminal may send the signaling packet X0 in a next uplinkslot (namely, a slot “2-U” of a period 3, a T3 moment) and send thesignaling packet X1 in a next uplink slot (namely, a slot “7-U” of aperiod 4, a T 4 moment) in immediate response to the paging request.Subsequently, the terminal 110 may send the voice packet Y3 in a slot“2-U” (a T5 moment) of a period 5, and send the voice packet Y4 in aslot “7-U” (a T6 moment) of a period 6. In other words, the terminal mayoccupy the radio frequency Tx channel to sequentially send the voicepacket Y0, the voice packet Y1, the voice packet Y2, the signalingpacket X0, the signaling packet X1, the voice packet Y3, and the voicepacket Y4 at a T0 moment, a T1 moment, a T2 moment, the T3 moment, theT4 moment, the T5 moment, and the T6 moment.

However, when the SIM card 1 is in the call state, if the terminal 110receives the paging request for the SIM card 2 and the terminal 110occupies the radio frequency Tx channel to send the signaling packet X0and the signaling packet X1 to the network device in immediate responseto the paging request, sending of the voice packet of the SIM card 1 isdelayed, and voice communication quality of the SIM card 1 is affected.

To ensure voice communication quality of the SIM card 1, in thisembodiment of the present invention, the terminal 110 may delayresponding to the paging request when sending the voice packet of theSIM card 1 (in other words, the terminal 110 has the to-be-sent voicepacket of the first communications connection). For example, as shown in“Tx (2)” in FIG. 7A, after receiving the paging request for the SIM card2 at the T7 moment, the terminal may delay responding to the pagingrequest. As shown in “Tx (2)” in FIG. 7A, the terminal may send thevoice packet Y3 in the next uplink slot (namely, the slot “2-U” of theperiod 3, the T3 moment), and send the voice packet Y4 in the nextuplink slot (namely, the slot “7-U” of the period 4, the T4 moment).Subsequently, the terminal 110 may send the signaling packet X0 in theslot “2-U” (namely, the T5 moment, which is delayed ΔT compared with theT7 moment) of the period 5, and send the signaling packet X1 in the slot“7-U” (the T6 moment) of the period 6. In other words, the terminal mayoccupy the radio frequency Tx channel to sequentially send the voicepacket Y0, the voice packet Y1, the voice packet Y2, the voice packetY3, the voice packet Y4, the signaling packet X0, and the signalingpacket X1 at the T0 moment, the T1 moment, the T2 moment, the T3 moment,the T4 moment, the T5 moment, and the T6 moment.

In some other embodiments, it is assumed that the terminal uses theUL-DL (2) slot configuration shown in Table 1 to perform voicecommunication of the SIM card 1, and uses the UL-DL (1) slotconfiguration shown in Table I to perform voice communication of the SIMcard 2.

Generally, regardless of whether a voice packet of the SIM card 1 issent on the radio frequency Tx channel, after receiving the pagingrequest, the terminal 110 may send the signaling packet X0 and thesignaling packet X1 on the radio frequency Tx channel in immediateresponse to the paging request. For example, as shown in FIG. 7B, in adownlink slot “9-D” (namely, a T7 moment) of a period 2 of UL-DL (1),the terminal receives the paging request for the SIM card 2 on the radiofrequency Rx 2 channel. As shown in “Tx (1)” in FIG. 7B, after receivingthe paging request for the SIM card 2 at the T7 moment, the terminal maysend the signaling packet XO in a slot “2-U” (namely, a T3 moment) of aperiod 3 of UL-DL (1) and send the signaling packet X1 in a slot “3-U”(namely, a T4 moment) of the period 3 of UL-DL (1) in immediate responseto the paging request. Subsequently, the terminal 110 may send the voicepacket Y3 in a slot “7 -U” (a T5 moment) of a period 4 of UL-DL (2), andsend the voice packet Y4 in a slot “2-U” (namely, a T6 moment) of aperiod 5 of UL-DL (2).

However, when the SIM card 1 is in the call state, if the terminal 110receives the paging request for the SIM card 2 and the terminal 110occupies the radio frequency Tx channel to send the signaling packet X0and the signaling packet X1 to the network device in immediate responseto the paging request, sending of the voice packet of the SIM card 1 isdelayed, and voice communication quality of the SIM card 1 is affected.

To ensure voice communication quality of the SIM card 1, in thisembodiment of the present invention, the terminal 110 may delayresponding to the paging request when sending the voice packet of theSIM card 1 (in other words, the terminal 110 has the to-be-sent voicepacket of the first communications connection). For example, as shown in“Tx (2)” in FIG. 7B, after receiving the paging request for the SIM card2 at the T7 moment, the terminal may delay responding to the pagingrequest, and send the voice packet Y3 in the slot “2-U” of the period 3of UL-DL (2), and send the voice packet Y4 in the slot “7-U” (namely, aT 4 moment) of the period 4 of UL-DL (2). Subsequently, the terminal 110may send the signaling packet X0 in a slot “7-U” (namely, a T5 moment,which is delayed ΔT compared with the T7 moment) of a period 5 of UL-DL(1), and send the signaling packet X1 in the slot “3-U” (namely, a T6moment) of the period 5 of UL-DL (1).

S505. When the terminal 110 receives the paging (paging) request for theSIM card 2, if the terminal 110 has no to-be-sent voice packet of theSIM card 1, the terminal 110 immediately responds to the paging request.

For example, in some embodiments, with reference to Table 1, it isassumed that the terminal uses the UL-DL (2) slot configuration shown inTable 1 to perform voice communication of the SIM card 1 and the SIMcard 2. As shown in FIG. 8A, in a downlink slot “9-D” of a period 2(namely, a T7 moment), the terminal receives the paging request for theSIM card 2 (namely, the paging request for setting up the secondcommunications connection) on the radio frequency Rx 2 channel. In thiscase, the terminal 110 does not send the voice packet of the SIM card 1(in other words, the terminal 110 has no to-be-sent voice packet of thefirst communications connection). Therefore, after receiving the pagingrequest for the SIM card 2, the terminal 110 may send a signaling packetX0 and a signaling packet X1 on the radio frequency Tx channel inimmediate response to the paging request. For example, as shown in FIG.8A, after receiving the paging request for the SIM card 2 at the T7moment, the terminal may send the signaling packet X0 in a next uplinkslot (namely, a slot “2-U” of a period 5, a T5 moment) in immediateresponse to the paging request, and send the signaling packet X1 in anext uplink slot (namely, a slot “7-U” of a period 6, a T6 moment).

In some other embodiments, it is assumed that the terminal uses the slotconfiguration of UL-DL (2) shown in Table 1 to perform voicecommunication of the SIM card 1, and uses the slot configuration ofUL-DL (1) shown in Table 1 to perform voice communication of the SIMcard 2. As shown in FIG. 8B. after receiving the paging request for theSIM card 2 at the T7 moment, the terminal may send the signaling packetX0 at a slot “2-U” of a period 5 of UL-DL (1) (namely, a T5 moment) inimmediate response to the paging request, and send the signaling packetX1 in a slot “3-U” of the period 5 of UL-DL (1) (namely, a T6 moment).

The terminal 110 may perform S506 and a subsequent method procedure inresponse to the paging request.

S506. The terminal 110 sends RRC signaling to a network device inresponse to the paging request, and sets up an RRC connection to thenetwork device based on the SIM card 2.

S507, The terminal 110 exchanges SIP signaling with the network device.

It can be understood that, in this embodiment of the present invention,that the terminal 110 delays responding to the paging request Whensending the voice packet of the SIM card 1 may specifically include: theterminal 110 delays sending the RRC signaling and the SIP signaling ofthe SIM card 2 when sending the voice packet of the SIM card 1.

S508. The terminal 110 receives incoming call information, sent by thenetwork device, of the SIM card 2.

After the terminal 110 obtains the incoming call information from thenetwork device, the method in some embodiments of the present inventionmay further include S509:

S509. The terminal 110 gives an incoming call notification of the SIMcard 2.

For example, that the terminal 110 gives an incoming call notificationincludes: the terminal 110 gives an incoming call notification in one ormore of the following notification manners: The terminal 110 rings, auser interface of the terminal 110 displays an incoming call from a userC, the terminal vibrates, a camera flash of the terminal flashes, and soon.

As prompted by the incoming call notification, a user may choose todecline an incoming call request for the SIM card 2, and continue with avoice call of the SIM card 1. Alternatively, the user may choose to hangup the voice call of the SIM card 1, and accept a voice call of the SIMcard 2.

For example, FIG. 9A and FIG. 9B are a schematic diagram of an exampleof a terminal call screen according to an embodiment of the presentinvention. In a process in which the terminal 110 performs a voice callwith the terminal 120 (a user B) by using the SIM card 1. assuming thatcontact information of the user B is stored in contacts of the terminal110, the terminal 110 may display a graphical user interface (GraphicalUser

Interface, GUI) shown in FIG. 9A. The GUI shown in FIG. 9A may include:icons such as incoming call user information (for example, “user B”),call time information, “for example, 08:01”, a mute icon 901, a dial padicon 902, a speaker icon 903, an add call icon 904, a contacts icon 905,and a hang up icon 906. For functions of the icons shown in FIG. 9A,refer to descriptions about functions of corresponding icons in theprior art. Details are not described herein in this embodiment of thepresent invention.

In a process in which the SIM card 1 of the terminal 110 performs avoice call with the terminal 120, if the terminal 110 receives anincoming call from the user C for the SIM card 2, after obtaining theincoming call information of the SIM card 2 (for example, a phone numberof the user C), the terminal 110 can display a graphical user interface(Graphical User

Interface, GUI) shown in FIG. 9B. The GUI shown in FIG. 9B may include:icons such as incoming call notification information of the SIM card 2(for example, “SIM card 2: incoming call from user C”) 906, an end andaccept icon 907. a continue and hang up icon 908, and a messages icon909. The icon 907 is used to end an original call (namely, the call ofthe SIM card 1 with the user B) and accept a new call (namely, the callof the SIM card 2 with the user C). The icon 908 is used to continuewith the original call (namely, the call of the SIM card 1 with the userB) and hang up the new call (namely, the call of the SIM card 2 with theuser C). The messages icon 909 is used to enter a message editingwindow, to send a message such as “I'll contact you later!”, or “I'm ina meeting. I'll call you later!” to the terminal 130 (namely, the userC). In some other embodiments, after obtaining the incoming callinformation of the SIM card 2 (for example, the phone number of the userC), the terminal 110 can display only the incoming call notificationinformation of the SIM card 2 (for example, “SIM card incoming call fromuser C”) 906. In some other embodiments, the messages icon 909 can bedisplayed after the user chooses to hang up the original call or the newcall.

According to the communication method for implementing dual card dualstandby dual pass provided in this embodiment of the present invention,when the SIM card 1 of the terminal 110 is in the call state, if theterminal 110 receives the paging request for the SIM card 2, theterminal 110 may delay responding to the paging request when sending thevoice packet of the SIM card 1 (in other words, there is a voice packetof the SIM card 1 to be sent on the radio frequency Tx resource). To bespecific, the terminal occupies the radio frequency Tx resource to sendthe RRC signaling in response to the paging request, and sets up the RRCconnection to the network device, only when the terminal 110 is notsending a voice packet of the SIM card 1 (in other words, there is novoice packet of the SIM card 1 to be transmitted on the radio frequencyTx resource). In this way, the terminal 110 may give an incoming callnotification of the SIM card 2 in response to the paging request for theSIM card 2 without affecting voice call quality of the SIM card 1.

In conclusion, according to this solution, the terminal 110 canimplement dual card dual standby dual pass of the terminal withoutaffecting voice call quality of the call card, to improve userexperience.

In some embodiments, after displaying the GUI shown in FIG. 9A and FIG.9B, the terminal 110 can determine, based on selection of the icon inthe GUI shown in FIG. 9A and FIG. 9B, whether the user accepts anincoming call request for the SIM card 2. As shown in FIG. 10, afterS509, the method in this embodiment of the present invention may furtherinclude S510:

S510. The terminal 110 determines Whether a user accepts an incomingcall request for the SIM card 2.

If the user chooses to decline the incoming call request for the SIMcard 2, and continues with the voice call of the SIM card 1, theterminal 110 may disconnect an RRC connection to the SIM card 2. If theuser chooses to hang up the voice call of the SIM card 1, and accept thevoice call of the SIM card 2, the terminal 110 may continue with S 511and a subsequent method procedure.

S511. The terminal 110 ends voice communication of the SIM card 1, andperforms voice communication with the terminal 130 by using the SIM card2 of the terminal 110.

In a process in which the terminal 110 performs voice communication withthe terminal 130 by using the SIM card 2, the SIM card 2 of the terminal110 occupies the Tx radio frequency resource (namely, the radiofrequency Tx channel) of the terminal 110.

As shown in FIG. 11A, when a finger of the user touches or approaches anicon 907 on a display panel shown in FIG. 11A, it indicates that theuser wants to end an original call (namely, the call of the SIM card 1with the user B) and accept a new call (namely, the call of the SIM card2 with the user C). A touch panel of the terminal 110 detects the touchevent on or near the touch panel, and transmits the touch event to aprocessor 410, to determine an instruction corresponding to the touchevent. Then the processor 410 instructs, according to the instruction,the display panel to display a GUI shown in FIG. 11B, so that the usercan perform voice communication with the user C. As shown in FIG. 11Band FIG. 11C, the terminal 110 may display a GUI shown in FIG. 11C afterdisplaying the GUI shown in FIG. 11B for a period of time (for example,three seconds).

In some embodiments, the terminal 110 may directly display the GUI shownin FIG. 11C without displaying the GUI shown in FIG. 11B.

As shown in FIG. 12A, when a finger of the user touches or approaches anicon 908 on a display panel shown in FIG. 12A, it indicates that theuser wants to continue with the original call (namely, the call of theSIM card 1 with the user B) and hang up the new call (namely, the callof the SIM card 2 with the user C). The touch panel of the terminal 110detects the touch event on or near the touch panel, and transmits thetouch event to the processor 410, to determine an instructioncorresponding to the touch event. Then the processor 410 instructs,according to die instruction, the display panel to display a GUI shownin FIG. 12B, so that the user can continue with voice communication withthe user B. As shown in FIG. 12B and FIG. 12C, the terminal 110 maydisplay a GUI shown in FIG. 12C after displaying the GUI shown in FIG.12B for a period of time (for example, two seconds).

In some embodiments, the terminal 110 may directly display the GUI shownin FIG. 12C without displaying the GUI shown in FIG. 129.

Optionally, as prompted by the incoming call notification, the user mayalternatively choose to hold the voice call of the SIM card 1 (the voicecall of the SIM card 1 is hold), and accept the voice call of the SIMcard 2.

For example, the terminal 110 can display an option “Hold the originalcall and accept the new call” in an incoming call notificationinterface. When the user chooses to hold the original call and acceptthe new call, the terminal 110 can hold the original call (the voicecall between the SIM card 1 and the terminal 120), and accept the newcall (the voice call between the SIM card 2 and the terminal 130). To bespecific, the SIM card 2 is controlled to temporarily occupy the radiofrequency Tx resource, to resume answering the original call afterending the new call or holding the new call. Most uplink data packets ofthe SIM card corresponding to the held (that is, hold hold) voice callare null packets.

For example, with reference to an example of a terminal call interfaceshown in FIG. 11A, in a process in which the SIM card 1 of the terminal110 performs a voice call with the terminal 120, if the SIM card 2receives an incoming call of the user C, after the terminal 110 obtainsincoming call information of the SIM card 2 (for example, the phonenumber of the user C), the terminal can display a GUI shown in FIG. 13Aif the phone number of the incoming call of the SIM card 2 andinformation about the user C are stored in contacts of the terminal 110.In addition to the icon 906, the icon 907, the icon 908, and the icon909 shown in FIG. 9B, the GUI shown in FIG. 13A may further include ahold and accept icon 910.

As shown in FIG. 15A and FIG. 15B, after S510. if the user chooses tohold the voice call of the SIM card 1 and accept the voice call of theSIM card 2, S512 may he further performed.

S512. The terminal 110 holds voice communication between the SIM card 1and the terminal 120, and performs voice communication with the terminal130 by using the SIM card 2.

When a voice call request for the SIM card 2 (namely, the incoming callrequest of the user C) is more important, the user A needs to accept theincoming call request of the user C, and the user A does not want tohang up the original call, the user A can select the hold and accepticon 910, to control the terminal 110 to hold the original call (thevoice call between the SIM card 1 and the terminal 120) and accept thenew call (the voice call between the SIM card 2 and the terminal 130).To be specific, the SIM card 2 is controlled to temporarily occupy theradio frequency Tx resource, to resume answering the original call afterending the new call or holding the new call.

As shown in FIG. 139, when a finger of the user touches or approaches anicon 510 on a display panel shown in FIG. 13B, it indicates that theuser wants to hold the original call (namely, the call of the SIM card 1with the user B) and accept the new call (namely, the call of the SIMcard 2 with the user C). The touch panel of the terminal 110 detects thetouch event on or near the touch panel, and transmits the touch event tothe processor 410, to determine an instruction corresponding to thetouch event. Then the processor 410 instructs, according to theinstruction, the display panel to display a GUI shown in FIG. 13C, sothat the user can hold the original call and perform voice communicationwith the user C.

As shown in FIG. 14A, when a finger of the user touches or approaches ahang up icon 506 on a display panel shown in FIG. 14A, it indicates thatthe user wants to end the new call (namely, the call of the SIM card 2with the user C) and continue with the original call (namely, the callof the SIM card 1 with the user 9). The touch panel of the terminal 110detects the touch event on or near the touch panel, and transmits thetouch event to the processor 410, to determine an instructioncorresponding to the touch event. Then the processor 410 instructs,according to the instruction, the display panel to display a GUI shownin FIG. 14B, so that the user can continue with voice communication withthe user B. As shown in FIG. 14B and FIG. 14C, the terminal 110 maydisplay a GUI shown in FIG. 14C after displaying the GUI shown in FIG.13B for a period of time (for example, two seconds). As shown in FIG.14C and FIG. 14D, the terminal 110 may display a GUI shown in FIG. 14Dafter displaying the GUI shown in FIG. 14C for a period of time (forexample, three seconds).

In some embodiments, the terminal 110 may directly display the GUI shownin FIG. 14C or the GUI shown in FIG. 14D without displaying the GUIshown in FIG. 14B.

Optionally, the terminal 110 further stores a transmit priority rule ofa data packet (an uplink data packet) of the first communicationsconnection and a data packet (an uplink data packet) of the secondcommunications connection, and a terminal state corresponding to thetransmit priority rule. The transmit priority rule is used to indicate,in a corresponding terminal state, transmit priorities of a data packetof the first communications connection and a data packet of the secondcommunications connection on the radio frequency transmit resource ofthe terminal.

In this embodiment of the present invention, the terminal 110 can send,according to a rule of transmit priorities of occupying the radiofrequency Tx channel by the SIM card 1 and the SIM card 2 when theterminal 110 is in different terminal states, an uplink data packet ofthe SIM card 1 or the SIM card 2 on the radio frequency Tx channel. Whenthe terminal 110 is in different states, the rule of transmit prioritiesof occupying the radio frequency Tx channel by the SIM card 1 and theSIM card 2 may be prestored in the terminal 110, The terminal 110 candetermine, based on a current terminal state of the terminal 110, therule of transmit priorities of occupying the radio frequency Tx channelby the SIM card 1 and the SIM card 2.

In some embodiments, the paging request initiated by the terminal 130 tothe SIM card 2 of the terminal 110 may be a paging request of a VoLTEservice in an LTE network. In these embodiments, voice communicationbetween the terminal 120 and the SIM card 1 of the terminal 110 may be aVoLTE service or a CS domain service.

In the LTE network, after receiving a paging request, the terminalcannot determine whether the paging request is used to request toperform a VoLTE voice service, or is used to request to perform a commondata service (such as a network access data service) If the terminalreceives, after receiving the paging request and setting up the RRCconnection to the network device, an INVITE message sent by the networkdevice, the terminal can determine that the paging request correspondingto the INVITE message is used to request to perform a VoLTE service, Ifthe terminal receives no INVITE message after setting up the RRCconnection to the network device, the terminal can determine that thepaging request is used to request to perform a common data service.

It can be understood that, if the paging request received by theterminal is used to request to perform a common data service, after theterminal receives the paging request, a voice call of the call card isfrequently affected if the terminal directly sets that a transmitpriority of a signaling packet of the access card (namely, the SIM card2) on the radio frequency Tx channel is higher than a transmit priorityof a voice packet of the call card on the radio frequency Tx channel.

To ensure that voice communication quality of the call card (namely, theSIM card 1) is not affected greatly, after S503 and before S504 andS505, the method in this embodiment of the present invention may furtherinclude S1601. For example, as shown in FIG. 16A and FIG. 16B, afterS503 shown in FIG. 15A and FIG. 15B and before S504 and S505, the methodin this embodiment of the present invention may further include S1601:

S1601. The terminal 110 transmits a data packet on a radio frequency Txchannel according to a first priority rule.

The first priority rule may be a transmit priority rule that is ofuplink data packets of the SIM card 1 and the SIM card 2 on the radiofrequency Tx channel and that is used by the terminal 110 after theterminal 110 receives the paging request for the SIM card 2 when the SIMcard 1 of the terminal 110 is in the call state.

For example, the first priority rule may be set as follows: A transmitpriority of a voice packet of the first communications connection on theradio frequency Tx channel is higher than a transmit priority of a firstsignaling packet on the radio frequency Tx channel. The first signalingpacket includes a signaling packet sent in response to the pagingrequest for setting up the second communications connection.

Further, to ensure that voice communication quality of the call card(namely, the SIM card 1) is not affected greatly, and increase apossibility that the signaling packet of the access card occupies theradio frequency Tx channel, the first priority rule may be further setas follows:

1. A transmit priority, of some important uplink data packets (such asan uplink voice packet) related to voice communication of the call card,on the radio frequency Tx channel is higher than a transmit priority ofthe signaling packet of the access card (namely, the SIM card 2) on theradio frequency Tx channel.

In other words, transmit priorities of all uplink data packets of thefirst communications connection on the radio frequency transmit resourceare higher than the transmit priority of the first signaling packet onthe radio frequency transmit resource.

2. A transmit priority, of another uplink data packet (such as an uplinkACK packet, or an uplink network access data service packet) related tovoice communication of the call card, on the radio frequency Tx channelis lower than the transmit priority of the signaling packet of theaccess card (namely, the SIM card 2) on the radio frequency Tx channel.

In other words, the transmit priority of the first signaling packet onthe radio frequency transmit resource is higher than a transmit priorityof an uplink data packet of another service of a first SIM card on theradio frequency transmit resource. The uplink data packet of the anotherservice is another uplink data packet that is different from all theuplink data packets of the first communications connection and that isin uplink data packets of all services of the first SIM card.

For example, delayed transmission of the uplink network access dataservice packet of the call card has no impact on voice communicationquality of the call card. Delayed transmission of the uplink ACK packetof the call card has no great impact on voice communication quality ofthe call card either. However, delayed transmission of the signalingpacket of the call card, the uplink voice packet of the call card, andan SR packet of the call card has relatively great impact on voicecommunication quality of the call card. Therefore, the first priorityrule may be set as follows:

(1) Transmit priorities of the signaling packet of the call card(namely, the SIM card 1), the uplink voice packet of the call card, andthe SR packet of the call card on the radio frequency Tx channel arehigher than the transmit priority of the signaling packet of the accesscard (namely, the SIM card 2) on the radio frequency Tx channel.

(2) The transmit priority of the signaling* packet of the access card(namely, the SIM card 2) on the radio frequency Tx channel is higherthan transmit priorities of the ACK packet of the call card (namely, theSIM card 1) and the network access data service packet of the call cardon the radio frequency Tx channel.

For example, FIG. 2 shows an example of the first priority rule providedin this embodiment of the present invention.

TABLE 2 First priority rule table Priority Packet transmitted on a radiofrequency Tx channel

Signaling packet, uplink voice packet, and SR packet of a call cardSignaling packet of an access card ACK packet of a call card Networkaccess data service packet of a call card

It can be understood that, normal transmission of the signaling packet,the uplink voice packet, and the SR packet of the call card can ensurethat voice communication quality of the call card is not affected, anddelayed sending of the ACK packet of the call card and the networkaccess data service packet of the call card has no relatively greatimpact on voice communication quality of the call card. Therefore, toavoid impact that is caused by occupation of the radio frequency Txchannel by the ACK packet of the call card and the network access dataservice packet of the call card and imposed on the sending, by theaccess card (namely, the SIM card 2), the signaling packet to thenetwork device in response to the paging request, in the first priorityrule, the transmit priority of the signaling packet of the access card(namely, the SIM card 2) on the radio frequency Tx channel may be higherthan the transmit priorities of the ACK packet and the network accessdata service packet of the call card (namely, the SIM card 1) on theradio frequency Tx channel.

It should be noted that Table 2 is merely an example of the firstpriority rule in this embodiment of the present invention. The firstpriority rule in this embodiment of the present invention includes butis not limited to the first priority rule described above and the firstpriority rule shown in table 2.

For example, FIG. 3 shows another example of the first priority ruleprovided in this embodiment of the present invention.

TABLE 3 First priority rule table Priority Packet transmitted on a radiofrequency Tx channel

Signaling packet, uplink voice packet, and SR packet of a call cardSignaling packet of an access card ACK packet of a call cardLow-priority packets of two cards Network access data service packet ofa call card

Low-priority packets of the two cards may include a null packet, a CQIpacket, and an SRS packet of the call card, and a null packet, a CQIpacket, and an SRS packet of the access card. Even delayed transmissionof the low-priority packets of the two cards does not affect voicecommunication of the call card. Therefore, to mitigate impact of thelow-priority packets of the two cards on the signaling packet of theaccess card, the terminal 110 may set that the transmit priority of thesignaling packet of the access card (for example, the SIM card 1) on theradio frequency Tx channel is higher than transmit priorities of thelow-priority packets of the two cards on the radio frequency Tx channel.

The terminal 110 preferentially transmits, based on priorities that areof data packets of the two cards and that are indicated by the firstpriority rule, a data packet having a relatively high priority on theradio frequency Tx channel.

It can be understood that, to ensure voice communication quality of thecall card, in the first priority rule, the signaling packet, the uplinkvoice packet, and the SR packet of the call card have a highestpriority. However, in a process of performing a voice service, the SIMcard 1 of the terminal 110 does not always occupy the radio frequency Txchannel to send the uplink voice packet. The terminal 110 may respond tothe call request for the access card in an idle time period within whichthe voice packet of the SIM card 1 is not sent on the radio frequency Txchannel. As shown in FIG. 16A and FIG. 16B, after S1601, S504 or S505may be continued.

After S506, that is, after the SIM card 2 of the terminal 110 sets upthe RRC connection to the network device, if the paging request is usedto request to perform a VoLTE voice service, the network device may sendan INVITE (Invite) message (namely, an INVITE message for the secondcommunications connection) to the terminal 110. If the paging request isused to request to perform a common network access data service, thenetwork device does not send an INVITE message to the SIM card 2 of theterminal 110. Specifically, as shown in FIG. 16A and FIG. 16B, afterS506 is performed to set up the RRC signaling to the network device, themethod in this embodiment of the present invention may further includeS1602:

S1602. The terminal 110 determines whether an INVITE message sent by thenetwork device for the SIM card 2 is received.

If the terminal 110 receives the INVITE message for the SIM card 2within a preset time (for example, 2 s), it indicates that the pagingrequest is used to request to perform a VoLTE voice service. Theterminal 110 can continue to exchange SIP signaling with the networkdevice to obtain the incoming call information of the SIM card 2, andgive an incoming call notification (that is, perform S507 to S509). Ifthe terminal 110 receives no INVITE message for the SIM card 2 within apreset time (for example, it indicates that the paging request is usedto request to perform a common network access data service for the SINIcard 2, the terminal 110 can disconnect the RRC connection and continuewith S501 and a subsequent method procedure.

In some embodiments, after receiving the INVITE message, the terminal110 can determine that the paging request for the SIM card 2 is used torequest to perform a VoLTE voice service, In this case, to ensure thatthe SIM card 2 can use the radio frequency Rx 2 channel and the radiofrequency Tx channel to receive and send the SIP signaling and interactwith the network device, to obtain the incoming call information of theSIM card 2, and give an incoming call notification, the terminal 110 mayset that a priority of an uplink data packet of the access card ishigher than a priority of an uplink data packet of the call card.Specifically, as shown in FIG. 17A and FIG. 17B, before S507 to S509 andafter S1602, if the terminal 110 receives an INVITE message for the SIMcard 2 within a preset time (for example, 2 s), the method in thisembodiment of the present invention may further include S1603:

S1603. The terminal 110 transmits a data packet on the radio frequencyTx channel according to a second priority rule.

For example, the second priority rule may be as follows: A transmitpriority of an uplink data packet of the second communicationsconnection (namely, the uplink data packet of the access card) on theradio frequency Tx channel is higher than an uplink data packet of thefirst communications connection (namely, the uplink data packet of thecall card) on the radio frequency Tx channel. The uplink data packet ofthe second communications connection includes the SIP signaling.

For example, the uplink data packet of the access card may include anuplink signaling packet of the access card, uplink data packets of thecall card may include all uplink data packets of the call card, such asan uplink signaling packet, an uplink CQI packet, and an uplink SRSpacket of the call card, so that in a process in which the access cardresponds to ring of a call, the call card preempts the radio frequencyTx channel, causing the access card to fail to ring.

For example, FIG. 4 shows an example of a second priority rule providedin this embodiment of the present invention.

TABLE 4 Second priority rule table Priority Packet transmitted on aradio frequency Tx channel

Uplink data packet of an access card Uplink data packet of a call card

After the terminal 110 transmits a data packet on the radio frequency Txchannel according to the second priority rule, the access card (namely,the SIM card 2) may occupy the radio frequency Tx channel, and use theradio frequency Rx 2 channel and the radio frequency Tx channel toreceive and send the SW signaling and interact with the network device,to obtain the incoming call information of the SIM card 2, and give anincoming call notification.

it should be noted that, “the access card occupies the radio frequencyTx channel” in this embodiment of the present invention means that theterminal 110 transmits an uplink data packet of the access card on theradio frequency Tx channel, and “the call card occupies the radiofrequency Tx channel” means that the terminal 110 transmits an uplinkdata packet of the call card on the radio frequency Tx channel.

It can be understood that, after the terminal 110 gives an incoming callnotification, the user may choose, according to the incoming callnotification, to hang up the voice call of the SIM card 1, and acceptthe voice call of the SIM card 2. The user may alternatively choose todecline the incoming call request for the SIM card 2 and continue withthe voice call of the SIM card 1. The user may alternatively choose tohold the voice call of SIM card 1 and accept the voice call of SIM card2. Therefore, in a period of time from a time when the terminal obtainsthe incoming call information from the network device (that is, performsS508) or the SIM card 2 sends the SIP signaling for obtaining theincoming call information to the network device (that is, performs S507)to a time when the user determines whether to accept the incoming callrequest for the SIM card 2 (that is, performs S510), in order topreferentially ensure voice communication quality of the SIM card 1, themethod in some embodiments of the present invention may further includeS1801:

S1801. The terminal 110 transmits a data packet on the radio frequencyTx channel according to the first priority rule.

In some other embodiments, the paging request initiated by the terminal130 to the SIM card 2 of the terminal 110 may be a paging request of aCS domain service. In these embodiments, voice communication between theterminal 120 and the SIM card 1 of the terminal 110 may be a VoLTEservice or a CS domain service.

Different from that of the VoLTE service, the paging request of the CSdomain service may directly indicate that the paging request is used torequest to perform a CS domain service, and the terminal does not needto wait for receiving an INVITE message to determine whether the pagingrequest is used to request to perform a CS domain service or a commondata service. Therefore, after the terminal 110 receives the pagingrequest (that is, after S503), if the terminal 110 determines that thepaging request is used to request to perform a CS domain service, theterminal 110 can directly perform S1603. As shown in FIG. 19A and FIG.19B, after S503, the method in this embodiment of the present inventionmay further include S1901.

S1901. The terminal 110 determines that the paging request is used torequest to perform a CS domain service.

If the terminal 110 determines that the paging request is used torequest to perform a CS domain service, to ensure that the SIM card 2can use the radio frequency Rx 2 channel and the radio frequency Txchannel to receive and send the SIP signaling and interact with thenetwork device, to obtain the incoming call information of the SIM card2, and give an incoming call notification, the terminal 110 may set thata priority of an uplink data packet of the access card is higher than apriority of an uplink data packet of the call card. In other words,after S1901, S1603 may be performed. For detailed descriptions aboutS1603, refer to related content in this embodiment of the presentinvention. Details are not described herein again in this embodiment ofthe present invention.

After the terminal 110 transmits a data packet on the radio frequency Txchannel according to the second priority rule, the access card (namely,the SIM card 2) may occupy the radio frequency Tx channel to send theRRC signaling to the network device through the radio frequency Txchannel (that is, perform S506), to set up the RRC connection to thenetwork device. In other words, after S1901, S506 and a subsequentprocedure can be directly performed.

It should be noted that, when the paging request is used to request toperform a CS domain service, the method in this embodiment of thepresent invention does not include S1602. In other words, as shown inFIG. 19A and FIG. 199, after S506, S507 to S510 can be directlyperformed.

In addition, when the paging request is used to request to perform a CSdomain service, S1801 is optional. In a period of time from a time whenthe terminal obtains the incoming call information from the networkdevice (that is, performs S508) or the SIM card 2 sends the SIPsignaling for obtaining the incoming call information to the networkdevice (that is, performs S507) to a time when the user determineswhether to accept the incoming call request for the SIM card 2 (that is,performs S510), execution of S1801 can preferentially ensure voicecommunication quality of the SIM card 1.

In some embodiments, in a process in which the terminal 110 performsvoice communication with the terminal 130 by using the SIM card 2 afterending voice communication with the terminal 120 (namely, S511),although the SIM card 1 of the terminal 110 ends voice communication,there is a network access data service on the SIM card 1. To ensure thatthe network access data service of the SIM card 1 is normally performedwithout imposing relatively great impact on voice communication qualityof the call card (namely, the SIM card 2), the terminal 110 can transmita data packet on the radio frequency Tx channel according to a thirdpriority rule. After S511, the method in this embodiment of the presentinvention may further include S2001. For example, as shown in FIG. 20A,FIG. 20B, and FIG. 20C, after S511 shown in FIG. 18A and FIG. 18B, themethod in this embodiment of the present invention may further includeS2001:

S2001. The terminal 110 transmits a data packet on the radio frequencyTx channel according to a third priority rule.

For example, the third priority rule may be:

1. A transmit priority of a high-priority packet of the call card (forexample, the SIM card 2) on the radio frequency Tx channel is higherthan a transmit priority of a network access data service packet of theaccess card (for example, the SIM card 1) on the radio frequency Txchannel.

2. The transmit priority of the network access data service packet ofthe access card (for example, the SIM card 1) on the radio frequency Txchannel is higher than the transmit priorities of the low-prioritypackets of the two cards on the radio frequency Tx channel.

For example, FIG. 5 shows an example of a third priority rule providedin this embodiment of the present invention.

TABLE 5 Third priority rule table Priority Packet transmitted on a radiofrequency Tx channel

High-priority packet of a call card Network access data service packetof an access card Low-priority packets of two cards

High-priority packets of the call card may include a signaling packet,an uplink voice packet, an ACK packet, and an SR packet of the callcard. Normal transmission of the signaling packet, the uplink voicepacket, the ACK packet, and the SR packet of the call card can ensurethat a voice service of the call card is not affected. Therefore, atransmit priority of the high-priority packet of the call card on theradio frequency Tx channel is the highest, so that voice communicationof the call card is not affected.

In addition, the low-priority packets of the two cards may include anull packet, a CQI packet, and an SRS packet of the call card, and anull packet, a CQI packet, and an SRS packet of the access card. Evendelayed transmission of null packets, CQI packets, and SRS packets ofthe call card and the call card does not affect voice communication ofthe call card. To mitigate impact of the low-priority packets of the twocards on the network access data service packet of the access card, theterminal 110 may set that the transmit priority of the network accessdata service packet of the access card (for example, the SIM card 1) onthe radio frequency Tx channel is higher than the transmit priorities ofthe low-priority packets of the two cards on the radio frequency Txchannel.

Further, in a process in which the terminal 110 performs voicecommunication with the terminal 130 by using the SIM card 2 of theterminal 110, there may be a paging request initiated by anotherterminal (for example, the terminal 120) to the SIM card 1 of theterminal 110. For a processing method after the SIM card 1 of theterminal 110 receives the paging request, refer to S502′ to S512′,S1601′ to S1603′, S1801′, and S1901′. In other words, in the process inwhich the terminal 110 performs voice communication with the terminal130 by using the SIM card 2, the foregoing S502 to S512 may be replacedwith S502′ to S512′, S1601 to S1603 may be replaced with S1601′ toS1603′, S1801 may be replaced with S1801′, and S1901 can be replacedwith S1901′.

For example, as shown in FIG. 21A, FIG. 20B, and FIG. 21C or FIG. 22Aand FIG. 22B, in a process in which the terminal 110 performs voicecommunication with the terminal 130 by using the SIM card 2 of theterminal 110, the method in this embodiment of the present invention mayinclude all or some steps of the following:

S502′. The terminal 120 initiates a call request to the SIM card 1 ofthe terminal 110.

S503′. The terminal 110 receives a paging request, triggered by the callrequest, for the SIM card 1.

After S503′, the method in this embodiment of the present invention mayfurther include S504′ and S505′:

S504′. When the terminal 110 receives the paging request for the SIMcard 1, if there is a to-be-sent voice packet of the SIM card 2, theterminal 110 delays responding to the paging request for the SIM card 1.

S505′. When the terminal 110 receives the paging request for the SIMcard 1, if there is no to-be-sent voice packet of the SIM card 2, theterminal 110 immediately responds to the paging request for the SIM card1.

The terminal 110 may perform S506′ and a subsequent method procedure inresponse to the paging request.

S506′. The terminal 110 sends RRC signaling to the network device inresponse to the paging request, and sets up an RRC connection to thenetwork device based on the SIM card 1.

S507′. The terminal 110 exchanges SIP signaling with the network device.

S508′. The terminal 110 receives incoming call information, sent by thenetwork device, of the SIM card 1.

S509′. The terminal 110 gives an incoming call notification of the SIMcard 1.

S510′. The terminal 110 determines whether a user accepts an incomingcall request for the SIM card 1.

If the user chooses to decline the incoming call request for the SIMcard 1, and continues with a voice call of the SIM card 2, the terminal110 can disconnect the RRC connection to the SIM card 1. If the userchooses to hang up the voice call of the SIM card 2, and accepts a voicecall of the SIM card 1, the terminal 110 can continue with S511′. If theuser chooses to hold the voice call of the SIM card 1 and accept thevoice call of the SIM card 2, S512′ can be further performed.

S511′. The terminal 110 ends voice communication of the SIM card 2, andperforms voice communication with the terminal 130 by using the SIM card1 of the terminal 110.

S512′. The terminal 110 holds voice communication between the SIM card 2and the terminal 120, and performs voice communication with the terminal130 by using the SIM card 1.

S1601′. The terminal 110 transmits a data packet on the radio frequencyTx channel according to a fourth priority rule.

Although the SIM card 1 of the terminal 110 ends voice communication,there may be a network access data service transmitted on the SIMcard 1. To mitigate impact of the low-priority packets of the two cardson the network access data service packet of the access card, in thefourth priority rule, the transmit priority of the network access dataservice packet of the access card (for example, the SIM card 2) on theradio frequency Tx channel is higher than the transmit priorities of thelow-priority packets of the two cards on the radio frequency Tx channel.

For example. Table 6 shows an example of the fourth priority ruleprovided in this embodiment of the present invention.

TABLE 6 Fourth priority rule table Priority Packet transmitted on aradio frequency Tx channel

High-priority packet of a call card Signaling packet of an access cardNetwork access data service packet of an access card Low-prioritypackets of two cards

S1602′. The terminal 110 determines whether an INVITE message sent bythe network device for the SIM card 1 is received.

Because there may be a data service on the SIM card 1, after S1602′ isperformed, if the SIM card 1 receives no INVITE message within a presettime, or after S510′ is performed, if the user declines the incomingcall request for the SIM card 1, the terminal 110 may not disconnect theRRC connection.

It should be noted that the foregoing tables (such as Table 4 to Table8) in this embodiment of the present invention merely provide someexamples of priority rules in this embodiment of the present invention,and the priority rules in this embodiment of the present inventioninclude but are not limited to the priority rules described above. Inaddition, the priority rules of the terminal 110 in this embodiment ofthe present invention include but are not limited to priority rules suchas the first priority rule, the second priority rule, the third priorityrule, and the fourth priority rule in this embodiment of the presentinvention. Various different priority rules may be set in the terminal110 for the terminal 110 to select and use, so that while ensuring voicecommunication quality of the call card, the access card can use theradio frequency Tx channel to send the SIP signaling and interact withthe network device after receiving the paging request, to obtain theincoming call information, and give an incoming call notification byringing.

S1603′. The terminal 110 transmits a data packet on the radio frequencyTx channel according to the second priority rule.

S1801′. The terminal 110 transmits a data packet on the radio frequencyTx channel according to the fourth priority rule.

S1901′. The terminal 110 determines that the paging request is used torequest to perform a CS domain service.

According to the communication method for implementing dual card dualstandby dual pass provided in this embodiment of the present invention,in a process in which the terminal 110 performs voice communication withthe terminal 120 by using the SIM card 1, if the SIM card 2 of theterminal 110 receives the paging request sent by the terminal 130, theterminal 110 can control, based on transmit priorities of various datapackets of the SIM card 1 and the SIM card 2 on the radio frequency Txchannel, the SIM card 1 or the SIM card 2 to occupy the radio frequencyTx resource, so that the SIM card 2 can respond, in an interval when theSIM card 1 occupies the radio frequency Tx resource to send a voicepacket, to the received paging request to set up a connection to thenetwork device, to obtain the incoming call information of the SIM card2, and give a notification for the user by ringing. According to thissolution, the terminal 110 can implement dual card dual standby dualpass of the terminal without affecting voice call quality of the callcard, to improve user experience.

The solutions provided in this embodiment of this application aredescribed above from the following perspective: The terminal sendsuplink data packets of the first communications connection and thesecond communications connection on the radio frequency transmitresource. It can be understood that, in order to implement the foregoingfunctions, the terminal includes corresponding function modules forexecuting the functions. A person skilled in the art should be easilyaware that, in combination with the example terminal and algorithm stepsdescribed in the embodiments disclosed in this specification, thisapplication can be implemented by hardware or a combination of hardwareand computer software. Whether a function is performed by hardware orhardware driven by computer software depends on particular applicationsand design constraints of the technical solutions. A person skilled inthe art may use different methods to implement the described functionsfor each particular application, but it should not be considered thatthe implementation goes beyond the scope of this application.

The terminal may be divided according to the foregoing method examplesin the embodiments of this application. For example, modules or unitsmay be divided to correspond to the functions, or two or more functionsmay be integrated into a processing module. The foregoing integratedmodule may be implemented in a form of hardware, or may be implementedin a form of a software module or unit. The division of modules or unitsin the embodiments of this application is an example, and is merelylogical function division, and there may be another division manner inactual implementation.

FIG. 23 is a possible schematic structural diagram of a terminal relatedto the foregoing embodiments. The terminal 2300 includes a first SIMcard interface and a second SIM card interface, where the first SIM cardinterface is configured to communicate with a first SIM card (namely,the foregoing SIM card 1), and the second SIM card interface isconfigured to communicate with a second SIM card (namely, the foregoingSIM card 2). As shown in FIG. 23, the terminal 2300 includes: areceiving module 2301, a sending module 2302, and a responding module2303.

The receiving module 1301 is configured to support the operation ofreceiving the downlink data packet in “the terminal 110 performs voicecommunication with the terminal 120” in S501, the operation of receivingthe SIP signaling in “the terminal 110 exchanges SIP signaling with thenetwork device” in S503, S507 and S507′, the operation of receiving thedownlink data packet in “the terminal 110 performs voice communication”in S508, S511, S511′, S512, and S512′, and operations in S503′ and S508′in the method embodiment, and/or other processes of the technologiesdescribed in this specification.

The sending module 2302 is configured to support the operation ofsending the uplink data packet in “the terminal 110 performs voicecommunication with the terminal 120” in S501, the operation of sendingthe RRC signaling in S506 and S506′, the operation of sending the SIPsignaling in “the terminal 110 exchanges SIP signaling with the networkdevice” in S507 and S507′, the operation of sending the uplink datapacket in “the terminal 110 performs voice communication” in S511,S511′, S512, and S512′, and operations in S1601, S1603, S1801, S2001,S506′, S1601′, S1603′, and S1801′ in the method embodiment, and/or otherprocesses of the technologies described in this specification.

The responding module 2303 is configured to support S504, S505, S504′,and S505′ in the method embodiment, and/or other processes of thetechnologies described in this specification.

Further, as shown in FIG. 24, the terminal 2300 may further include adetermining module 2304. The determining module 2304 is configured tosupport S1602 and S1602′ in the method embodiment, and/or otherprocesses of the technologies described in this specification.

Further, the terminal 2300 may further include a storage module. Thestorage module is configured to store priority rules such as the firstpriority rule, the second priority rule, the third priority rule, andthe fourth priority rule in the embodiments of the present invention.

Further, the terminal 2300 may further include a display module. Thedisplay module is configured to display an incoming call notificationinterface of the terminal 2300. For example, the display module isconfigured to display the GUI shown in any one of FIG. 9A, FIG. 9B, FIG.11A, FIG. 11B, FIG. 11C, FIG. 12A, FIG. 12B, FIG. 12C, FIG. 13A, FIG.13B, FIG. 13C, FIG. 14A, FIG. 14B, FIG. 14C, and FIG. 14D.

Further, the terminal 2300 may further include a judgment module. Thejudgment module is configured to support S510 and S510′ in the methodembodiment, and/or other processes of the technologies described in thisspecification.

Further, the terminal 2300 may further include a setup module. The setupmodule is configured to support the operation of “setting up an RRCconnection” in S506 and S506′ in the method embodiment.

Further, as shown in FIG. 25, the terminal 2300 may further include anincoming call notification module 2305. The incoming call notificationmodule 2305 is configured to support S509 and S509′ in the methodembodiment, and/or other processes of the technologies described in thisspecification.

Further, the terminal 2300 may further include another determiningmodule. The another determining module is configured to support S1901and S1901′ in the method embodiment, and/or other processes of thetechnologies described in this specification.

Certainly, the terminal 2300 includes but is not limited to the unitsand modules listed above. For example, the terminal 2300 may furtherinclude a control module supporting the operation of “ending voicecommunication with the SIM card 1” in S511. In addition, specificfunctions that can be implemented by the foregoing modules include butare not limited to the functions corresponding to the method stepsdescribed in the foregoing embodiment. For detailed descriptions aboutother units of the terminal 2300 and the units of the terminal 2300,refer to detailed descriptions about the corresponding method steps.Details are not described herein in this embodiment of this application.

When an integrated unit is used, the responding module 2303, thejudgment module, the setup module, the incoming call notification module2305, the determining module 2304, and the like may be integrated in oneprocessing unit for implementation. The processing unit may be aprocessor or a controller, for example, may be a central processing unit(Central Processing Unit, CPU), a general purpose processor, a digitalsignal processor (Digital Signal Processor, DSP), anapplication-specific integrated circuit (Application-Specific IntegratedCircuit, ASIC), a field programmable gate array (Field Programmable GateArray, FPGA), or another programmable logical device, a transistor logicdevice, a hardware component, or any combination thereof. The processingunit can implement or perform various example logical blocks, modules,and circuits described with reference to content disclosed in thisapplication. Alternatively, the processing unit may be a combinationimplementing a computing function, for example, a combination includingone or more microprocessors, or a combination of a DSP and amicroprocessor. The storage module 2304 may be a memory. The displaymodule may be a display.

When the processing unit is a processor, the storage module is a memory,and the sending module and the receiving module are a communicationsinterface, the terminal 2300 in this embodiment of this application maybe a terminal 2600 shown in FIG. 26. The terminal 2600 supports DR-RSDS,and the terminal 2600 includes: one or more processors 2601, a memory2602, a communications interface 2603, a first SIM card interface 2604,and a second SIM card interface 2605.

The memory 2602, the communications interface 2603. the first SIM cardinterface 2604, and the second SIM card interface 2605 are coupled toone or more processors 2601. For example, as shown in FIG. 27, thememory 2602, the communications interface 2603, the first SIM cardinterface 2604, the second SIM card interface 2605, and the processor2601 may be connected through a bus 2606.

The first SIM card interface 2604 is configured to communicate with thefirst SIM card, the second SIM card interface 2605 is configured tocommunicate with the second SIM card, and the communications interface2603 includes two radio frequency receive channels (for example, a radiofrequency Rx 1 channel and a radio frequency Rx 2 channel) and one radiofrequency transmit channel (for example, a radio frequency Tx channel).The memory 2602 is configured to store computer program code, where thecomputer program code includes an instruction, and when the one or moreprocessors 2601 execute the instruction, the terminal 2600 performs thecommunication method for implementing dual card dual standby dual passshown in any one of FIG. 5, FIG. 10, and FIG ISA and FIG. 15B to FIG.22A and FIG. 22B,

The bus 2606 may be a Peripheral Component Interconnect (PeripheralComponent Interconnect, PCI) bus, an Extended industry StandardArchitecture (Extended Industry Standard Architecture, EISA) bus, or thelike. The bus 2606 may be classified into an address bus, a data bus, acontrol bus, and the like. For ease of representation, only one thickline is used to represent the bus in FIG. 26, but this does not meanthat there is only one bus or only one type of bus.

An embodiment of the present invention further provides a computerstorage medium, where the computer storage medium stores computerprogram code, and when a processor 2601 of a terminal 2600 executes thecomputer program code, the terminal 2600 performs the related methodsteps in any one of FIG. 5, FIG. 10, and FIG. 15A and FIG. 15B to FIG.22A and FIG. 22B, to implement the communication method for implementingdual card dual standby dual pass in the foregoing embodiments.

An embodiment of the present invention further provides a computerprogram product, and when the computer program product runs on acomputer, the computer performs the related method steps in any one ofFIG. 5. FIG. 10, and FIG. 15A and FIG. 159 to FIG. 22A and FIG. 22B, toimplement the communication method for implementing dual card dualstandby dual pass in the foregoing embodiments.

The terminal, computer storage medium, and computer program productprovided in the embodiments of the present invention are all configuredto perform the corresponding method provided above. Therefore, forbeneficial effects that can be achieved thereby, refer to the beneficialeffects in the corresponding method provided above. Details are notdescribed herein again.

The foregoing descriptions about implementations allow a person skilledin the art to understand that, for the purpose of convenient and briefdescription, division of the foregoing function modules is taken as anexample for illustration. In actual application, the foregoing functionscan be allocated to different function modules and implemented accordingto a requirement, that is, an inner structure of an apparatus is dividedinto different function modules to implement all or part of thefunctions described above. For a detailed working process of theforegoing system, apparatus, and unit, refer to a corresponding processin the foregoing method embodiments. Details are not described hereinagain.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in another manner. For example, the described apparatusembodiment is merely an example. For example, the module or unitdivision is merely logical function division and may be another divisionin actual implementation. For example, a plurality of units orcomponents may be combined or integrated into another system, or somefeatures may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communicationsconnections may be implemented through some interfaces. The indirectcouplings or communications connections between the apparatuses or unitsmay be implemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected according to anactual requirement, to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units are integrated into one unit. Theintegrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a computer-readable storage medium.Based on such an understanding, the technical solutions of thisapplication essentially, or the part contributing to the prior art, orall or some of the technical solutions may be implemented in the form ofa software product. The computer software product is stored in a storagemedium and includes several instructions for instructing a computerdevice (which may be a personal computer, a server, a network device, orthe like) or a processor to perform all or some of the steps of themethods described in the embodiments of this application. The foregoingstorage medium includes: any medium that can store program code, such asa flash memory, a removable hard disk, a read-only memory, a randomaccess memory, a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement within the technical scopedisclosed in this application shall fall within the protection scope ofthis application. Therefore, the protection scope of this applicationshall be subject to the protection scope of the claims.

1. A communication method for implementing dual card dual standby dualpass, implemented by a terminal supporting dual receive single transmitdual card dual standby single pass (DR-DSDS), wherein the communicationmethod comprises: receiving a paging request for setting up a secondcommunications connection when the terminal is in a first communicationsconnection, wherein the first communications connection is a voice callrelated to a first subscriber identity module (SIM) card of the terminaland the second communications connection is related to a second SIM cardof the terminal; delaying, by the terminal, responding to the pagingrequest when the terminal has a to-be-sent voice packet of the firstcommunications connection; and responding to the paging request when theterminal does not have the to-be-sent voice packet.
 2. The communicationmethod of claim 1, wherein the method further comprises: determiningwhether the second communications connection is a voice call related tothe second SIM card; and processing the first communications connectionwhen the second communications connection is not the voice call relatedto the second SIM card.
 3. The communication method of claim 2, whereindetermining whether the second communications connection is the voicecall related to the second SIM card comprises: sending to a networkdevice, radio resource control (RRC) signaling for setting up an RRCconnection; and sending session initiating protocol (SIP) signaling tothe network device; and determining, based on whether the terminal canreceive an INVITE message, whether the second communications connectionis the voice call related to the second SIM card.
 4. The communicationmethod of claim 2, wherein determining whether the second communicationsconnection is the voice call related to the second SIM card comprisesdetermining, based on the paging request for setting up the secondcommunications connection, whether the second communications connectionis the voice call related to the second SIM card.
 5. The communicationmethod of claim 2, wherein the method further comprises providing anincoming call notification of the second communications connection whenthe second communications connection is the voice call related to thesecond SIM card.
 6. The communication method of claim 5, wherein beforeproviding the incoming call notification of the second communicationsconnection, a first priority for sending an uplink data packet of thesecond communications connection is higher than a second priority forsending an uplink data packet of the first communications connection. 7.The communication method of claim 5, wherein while providing theincoming call notification of the second communications connection, afirst priority for sending an uplink voice packet of the firstcommunications connection is higher than a second priority for sendingan uplink signaling packet of the second communications connection. 8.The communication method of claim 2, wherein after the terminal providesan incoming call notification of the second communications connection,and when the terminal ends the first communications connection and is inthe second communications connection, a first priority for sending anuplink voice packet of the second communications connection by theterminal is higher than a second priority for sending an uplink networkaccess data packet of the first communications connection. 9-16.(canceled)
 17. A terminal, comprising: one or more processors; acommunications interface coupled to the one or more processors, whereinthe communications interface comprises two radio frequency receivechannels and one radio frequency transmit channel; a first subscriberidentity module (SIM) card interface coupled to the one or moreprocessors and configured to communicate with a first SIM card; a secondSIM card interface coupled to the one or more processors and configuredto communicate with a second SIM card; and a memory coupled to the oneor more processors and storing one or more programs that, when executedby the one or more processors, cause the terminal to be configured to:receive a paging request for setting up a second communicationsconnection when the terminal is in a first communications connection,wherein the first communications connection is a voice call related tothe first SIM card, and wherein the second communications connection isrelated to the second SIM card; delay responding to the paging requestfor setting up the second communications connection when the terminalhas a to-be-sent voice packet of the first communications connection;and respond to the paging request for setting up the secondcommunications connection when the terminal has the to-be-sent voicepacket of the first communications connection. 18-19. (canceled)
 20. Theterminal of claim 17, wherein the one or more programs further cause theterminal to be configured to: determine whether the secondcommunications connection is a voice call related to the second SIMcard; and process the first communications connection when the secondcommunications connection is not the voice call related to the secondSIM card.
 21. The terminal of claim 17, wherein the one or more programscause the terminal to determine whether the second communicationsconnection is the voice call related to the second SIM card by causingthe terminal to: send, to a network device, radio resource control (RRC)signaling for setting up an RRC connection; send session initiatingprotocol (SIP) signaling to the network device; and determine, based onwhether the terminal can receive an INVITE message, whether the secondcommunications connection is the voice call related to the second SIMcard.
 22. The terminal of claim 17, wherein the one or more programscause the terminal to determine whether the second communicationsconnection is the voice call related to the second SIM card by causingthe terminal to determine, based on the paging request for setting upthe second communications connection, whether the second communicationsconnection is the voice call related to the second SIM card.
 23. Theterminal of claim 17, wherein the one or more programs further cause theterminal to provide an incoming call notification of the secondcommunications connection when the second communications connection isthe voice call related to the second SIM card.
 24. The terminal of claim23, wherein before the terminal provides the incoming call notificationof the second communications connection, a first priority for sending anuplink data packet of the second communications connection is higherthan a second priority for sending an uplink data packet of the firstcommunications connection.
 25. The terminal of claim 23, wherein whilethe terminal provides the incoming call notification of the secondcommunications connection, a first priority for sending an uplink voicepacket of the first communications connection is higher than a secondpriority for sending an uplink signaling packet of the secondcommunications connection.
 26. The terminal of claim 17, wherein afterthe terminal provides an incoming call notification of the secondcommunications connection, and when the terminal ends the firstcommunications connection and is in the second communicationsconnection, a first priority for sending an uplink voice packet of thesecond communications connection is higher than a second priority forsending an uplink network access data packet of the first communicationsconnection.
 27. The terminal of claim 17, wherein the first SIM card isa primary SIM card of the terminal and the second SIM card is asecondary SIM card of the terminal.
 28. The terminal of claim 17,wherein the first SIM card is a secondary SIM card of the terminal andthe second SIM card is a primary SIM card of the terminal.
 29. Thecommunication method of claim 1, wherein the first SIM card is a primarySIM card of the terminal and the second SIM card is a secondary SIM cardof the terminal.
 30. The communication method of claim 1, wherein thefirst SIM card is a secondary SIM card of the terminal and the secondSIM card is a primary SIM card of the terminal.